From: tb Date: Sat, 11 Mar 2023 16:29:48 +0000 (+0000) Subject: Switch an early return into goto err X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=412ba913e511c2fde15c6737fff8abf8d4366012;p=openbsd Switch an early return into goto err --- diff --git a/lib/libcrypto/asn1/bio_ndef.c b/lib/libcrypto/asn1/bio_ndef.c index 3fd7f3c4c36..182ca529600 100644 --- a/lib/libcrypto/asn1/bio_ndef.c +++ b/lib/libcrypto/asn1/bio_ndef.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_ndef.c,v 1.15 2023/03/11 16:02:06 tb Exp $ */ +/* $OpenBSD: bio_ndef.c,v 1.16 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)