Check pointer variable if it is NULL in ca.c
authorinoguchi <inoguchi@openbsd.org>
Tue, 20 Jul 2021 12:04:53 +0000 (12:04 +0000)
committerinoguchi <inoguchi@openbsd.org>
Tue, 20 Jul 2021 12:04:53 +0000 (12:04 +0000)
missed with r1.32

usr.bin/openssl/ca.c

index 79bb9ac..2b34d29 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ca.c,v 1.33 2021/07/15 12:41:49 inoguchi Exp $ */
+/* $OpenBSD: ca.c,v 1.34 2021/07/20 12:04:53 inoguchi Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -880,7 +880,7 @@ ca_main(int argc, char **argv)
 
        f = NCONF_get_string(conf, ca_config.section, ENV_NAMEOPT);
 
-       if (f) {
+       if (f != NULL) {
                if (!set_name_ex(&nameopt, f)) {
                        BIO_printf(bio_err,
                            "Invalid name options: \"%s\"\n", f);