diff options
-rw-r--r-- | src/usr.bin/openssl/req.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr.bin/openssl/req.c b/src/usr.bin/openssl/req.c index 29a47cbfed..7bfb90d14b 100644 --- a/src/usr.bin/openssl/req.c +++ b/src/usr.bin/openssl/req.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: req.c,v 1.17 2019/11/06 10:35:40 inoguchi Exp $ */ | 1 | /* $OpenBSD: req.c,v 1.18 2019/11/06 11:16:16 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 | * |
@@ -416,9 +416,9 @@ req_main(int argc, char **argv) | |||
416 | 416 | ||
417 | if (verbose) | 417 | if (verbose) |
418 | BIO_printf(bio_err, "Using configuration from %s\n", template); | 418 | BIO_printf(bio_err, "Using configuration from %s\n", template); |
419 | req_conf = NCONF_new(NULL); | 419 | if ((req_conf = NCONF_new(NULL)) == NULL) |
420 | i = NCONF_load(req_conf, template, &errline); | 420 | goto end; |
421 | if (i == 0) { | 421 | if(!NCONF_load(req_conf, template, &errline)) { |
422 | BIO_printf(bio_err, "error on line %ld of %s\n", errline, template); | 422 | BIO_printf(bio_err, "error on line %ld of %s\n", errline, template); |
423 | goto end; | 423 | goto end; |
424 | } | 424 | } |
@@ -439,9 +439,9 @@ req_main(int argc, char **argv) | |||
439 | if (verbose) | 439 | if (verbose) |
440 | BIO_printf(bio_err, | 440 | BIO_printf(bio_err, |
441 | "Using additional configuration from command line\n"); | 441 | "Using additional configuration from command line\n"); |
442 | addext_conf = NCONF_new(NULL); | 442 | if ((addext_conf = NCONF_new(NULL)) == NULL) |
443 | i = NCONF_load_bio(addext_conf, addext_bio, &errline); | 443 | goto end; |
444 | if (i == 0) { | 444 | if (!NCONF_load_bio(addext_conf, addext_bio, &errline)) { |
445 | BIO_printf(bio_err, | 445 | BIO_printf(bio_err, |
446 | "req: Error on line %ld of config input\n", | 446 | "req: Error on line %ld of config input\n", |
447 | errline); | 447 | errline); |