From a8b72ad29b3a088eb9a345433b00861cd0b20819 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 11 Mar 2023 16:29:48 +0000 Subject: Switch an early return into goto err --- src/lib/libcrypto/asn1/bio_ndef.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ -/* $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) -- cgit v1.2.3-55-g6feb