summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2026-09-02 07:11:55 +0000
committertb <>2026-09-02 07:11:55 +0000
commit94a60eb8455f32817cfc79c97d8c54aa8a4bcf91 (patch)
tree0a5f56a0223828219e25ab79140f022fe61d7679 /src
parent2eeb9a47eef4d3dbeb9c97c8ef2d31fd2aa5dcf0 (diff)
downloadopenbsd-94a60eb8455f32817cfc79c97d8c54aa8a4bcf91.tar.gz
openbsd-94a60eb8455f32817cfc79c97d8c54aa8a4bcf91.tar.bz2
openbsd-94a60eb8455f32817cfc79c97d8c54aa8a4bcf91.zip
asn1_multi: explicitly test against NULL twice
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/asn1_gen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_gen.c b/src/lib/libcrypto/asn1/asn1_gen.c
index 28af199430..1bec75bba5 100644
--- a/src/lib/libcrypto/asn1/asn1_gen.c
+++ b/src/lib/libcrypto/asn1/asn1_gen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_gen.c,v 1.33 2026/09/02 07:11:04 tb Exp $ */ 1/* $OpenBSD: asn1_gen.c,v 1.34 2026/09/02 07:11:55 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 2002. 3 * project 2002.
4 */ 4 */
@@ -447,8 +447,8 @@ asn1_multi(int utype, const char *section, X509V3_CTX *cnf)
447 if ((sk = sk_ASN1_TYPE_new_null()) == NULL) 447 if ((sk = sk_ASN1_TYPE_new_null()) == NULL)
448 goto err; 448 goto err;
449 449
450 if (section) { 450 if (section != NULL) {
451 if (!cnf) 451 if (cnf == NULL)
452 goto err; 452 goto err;
453 453
454 if ((sect = X509V3_get0_section(cnf, section)) == NULL) 454 if ((sect = X509V3_get0_section(cnf, section)) == NULL)