From 544d96e5632edc92e5e9b376e180592eb8ee8eaa Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 25 Mar 2023 10:41:52 +0000 Subject: [PATCH] Unindent asn1_bio_get_ex() --- lib/libcrypto/asn1/bio_asn1.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/asn1/bio_asn1.c b/lib/libcrypto/asn1/bio_asn1.c index 21f33ecfc90..8fb9bc5bf4a 100644 --- a/lib/libcrypto/asn1/bio_asn1.c +++ b/lib/libcrypto/asn1/bio_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_asn1.c,v 1.19 2023/03/10 11:55:38 tb Exp $ */ +/* $OpenBSD: bio_asn1.c,v 1.20 2023/03/25 10:41:52 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -458,11 +458,12 @@ asn1_bio_get_ex(BIO *b, int cmd, asn1_ps_func **ex_func, BIO_ASN1_EX_FUNCS extmp; int ret; - ret = BIO_ctrl(b, cmd, 0, &extmp); - if (ret > 0) { - *ex_func = extmp.ex_func; - *ex_free_func = extmp.ex_free_func; - } + if ((ret = BIO_ctrl(b, cmd, 0, &extmp)) <= 0) + return ret; + + *ex_func = extmp.ex_func; + *ex_free_func = extmp.ex_free_func; + return ret; } -- 2.20.1