artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23db840
)
Switch an early return into goto err
author
tb
<tb@openbsd.org>
Sat, 11 Mar 2023 16:29:48 +0000
(16:29 +0000)
committer
tb
<tb@openbsd.org>
Sat, 11 Mar 2023 16:29:48 +0000
(16:29 +0000)
lib/libcrypto/asn1/bio_ndef.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/asn1/bio_ndef.c
b/lib/libcrypto/asn1/bio_ndef.c
index
3fd7f3c
..
182ca52
100644
(file)
--- a/
lib/libcrypto/asn1/bio_ndef.c
+++ b/
lib/libcrypto/asn1/bio_ndef.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: bio_ndef.c,v 1.1
5 2023/03/11 16:02:06
tb Exp $ */
+/* $OpenBSD: bio_ndef.c,v 1.1
6 2023/03/11 16:29:48
tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@
-107,7
+107,7
@@
BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it)
if (aux == NULL || aux->asn1_cb == NULL) {
ASN1error(ASN1_R_STREAMING_NOT_SUPPORTED);
-
return NULL
;
+
goto err
;
}
if ((ndef_aux = calloc(1, sizeof(NDEF_SUPPORT))) == NULL)