diff options
author | tb <> | 2023-03-11 16:29:48 +0000 |
---|---|---|
committer | tb <> | 2023-03-11 16:29:48 +0000 |
commit | a8b72ad29b3a088eb9a345433b00861cd0b20819 (patch) | |
tree | e074b68f18ef313b91f4864390c3039f41707ab6 /src/lib | |
parent | f8e764961049d6799cdf3040a39bba824db929cf (diff) | |
download | openbsd-a8b72ad29b3a088eb9a345433b00861cd0b20819.tar.gz openbsd-a8b72ad29b3a088eb9a345433b00861cd0b20819.tar.bz2 openbsd-a8b72ad29b3a088eb9a345433b00861cd0b20819.zip |
Switch an early return into goto err
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/asn1/bio_ndef.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/bio_ndef.c b/src/lib/libcrypto/asn1/bio_ndef.c index 3fd7f3c4c3..182ca52960 100644 --- a/src/lib/libcrypto/asn1/bio_ndef.c +++ b/src/lib/libcrypto/asn1/bio_ndef.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_ndef.c,v 1.15 2023/03/11 16:02:06 tb Exp $ */ | 1 | /* $OpenBSD: bio_ndef.c,v 1.16 2023/03/11 16:29:48 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -107,7 +107,7 @@ BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) | |||
107 | 107 | ||
108 | if (aux == NULL || aux->asn1_cb == NULL) { | 108 | if (aux == NULL || aux->asn1_cb == NULL) { |
109 | ASN1error(ASN1_R_STREAMING_NOT_SUPPORTED); | 109 | ASN1error(ASN1_R_STREAMING_NOT_SUPPORTED); |
110 | return NULL; | 110 | goto err; |
111 | } | 111 | } |
112 | 112 | ||
113 | if ((ndef_aux = calloc(1, sizeof(NDEF_SUPPORT))) == NULL) | 113 | if ((ndef_aux = calloc(1, sizeof(NDEF_SUPPORT))) == NULL) |