diff options
| author | inoguchi <> | 2021-07-20 12:04:53 +0000 |
|---|---|---|
| committer | inoguchi <> | 2021-07-20 12:04:53 +0000 |
| commit | 2946d0b4ed143b3c081823855995d3e074722165 (patch) | |
| tree | d7ce21bdd8c244a8a5d4ed59a20c03c8405704b9 /src | |
| parent | b43c2251faf8549ae0e94f63684a963e5befe58b (diff) | |
| download | openbsd-2946d0b4ed143b3c081823855995d3e074722165.tar.gz openbsd-2946d0b4ed143b3c081823855995d3e074722165.tar.bz2 openbsd-2946d0b4ed143b3c081823855995d3e074722165.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.c | 4 |
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); |
