summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2021-07-20 12:04:53 +0000
committerinoguchi <>2021-07-20 12:04:53 +0000
commit0709cead32277189314b7dc1b11c3cae38813cae (patch)
treed7ce21bdd8c244a8a5d4ed59a20c03c8405704b9 /src
parent34477148ac32d0bae03ea07884b821cec8cc462a (diff)
downloadopenbsd-0709cead32277189314b7dc1b11c3cae38813cae.tar.gz
openbsd-0709cead32277189314b7dc1b11c3cae38813cae.tar.bz2
openbsd-0709cead32277189314b7dc1b11c3cae38813cae.zip
Check pointer variable if it is NULL in ca.c
missed with r1.32
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c
index 79bb9ac8b6..2b34d29a1b 100644
--- a/src/usr.bin/openssl/ca.c
+++ b/src/usr.bin/openssl/ca.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ca.c,v 1.33 2021/07/15 12:41:49 inoguchi Exp $ */ 1/* $OpenBSD: ca.c,v 1.34 2021/07/20 12:04:53 inoguchi Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -880,7 +880,7 @@ ca_main(int argc, char **argv)
880 880
881 f = NCONF_get_string(conf, ca_config.section, ENV_NAMEOPT); 881 f = NCONF_get_string(conf, ca_config.section, ENV_NAMEOPT);
882 882
883 if (f) { 883 if (f != NULL) {
884 if (!set_name_ex(&nameopt, f)) { 884 if (!set_name_ex(&nameopt, f)) {
885 BIO_printf(bio_err, 885 BIO_printf(bio_err,
886 "Invalid name options: \"%s\"\n", f); 886 "Invalid name options: \"%s\"\n", f);