From: inoguchi Date: Tue, 20 Jul 2021 12:04:53 +0000 (+0000) Subject: Check pointer variable if it is NULL in ca.c X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e9918fb5f7e89af1bd7a81ac17a4000444650965;p=openbsd Check pointer variable if it is NULL in ca.c missed with r1.32 --- diff --git a/usr.bin/openssl/ca.c b/usr.bin/openssl/ca.c index 79bb9ac8b62..2b34d29a1bc 100644 --- a/usr.bin/openssl/ca.c +++ b/usr.bin/openssl/ca.c @@ -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);