summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-03-25 10:41:52 +0000
committertb <>2023-03-25 10:41:52 +0000
commit6bc25ffff5cc4d3d7ee39d5eb151e2f851a2a0a7 (patch)
tree52ec3056008088fa187ea4d7123f776b8fb3baa9
parent9de6378e539579d6752bf5371a73e7438ee67510 (diff)
downloadopenbsd-6bc25ffff5cc4d3d7ee39d5eb151e2f851a2a0a7.tar.gz
openbsd-6bc25ffff5cc4d3d7ee39d5eb151e2f851a2a0a7.tar.bz2
openbsd-6bc25ffff5cc4d3d7ee39d5eb151e2f851a2a0a7.zip
Unindent asn1_bio_get_ex()
-rw-r--r--src/lib/libcrypto/asn1/bio_asn1.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/bio_asn1.c b/src/lib/libcrypto/asn1/bio_asn1.c
index 21f33ecfc9..8fb9bc5bf4 100644
--- a/src/lib/libcrypto/asn1/bio_asn1.c
+++ b/src/lib/libcrypto/asn1/bio_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_asn1.c,v 1.19 2023/03/10 11:55:38 tb Exp $ */ 1/* $OpenBSD: bio_asn1.c,v 1.20 2023/03/25 10:41:52 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 */
@@ -458,11 +458,12 @@ asn1_bio_get_ex(BIO *b, int cmd, asn1_ps_func **ex_func,
458 BIO_ASN1_EX_FUNCS extmp; 458 BIO_ASN1_EX_FUNCS extmp;
459 int ret; 459 int ret;
460 460
461 ret = BIO_ctrl(b, cmd, 0, &extmp); 461 if ((ret = BIO_ctrl(b, cmd, 0, &extmp)) <= 0)
462 if (ret > 0) { 462 return ret;
463 *ex_func = extmp.ex_func; 463
464 *ex_free_func = extmp.ex_free_func; 464 *ex_func = extmp.ex_func;
465 } 465 *ex_free_func = extmp.ex_free_func;
466
466 return ret; 467 return ret;
467} 468}
468 469