diff options
author | Richard Levitte <levitte@openssl.org> | 2017-06-30 20:47:45 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-07-01 10:03:21 +0200 |
commit | f2da4a4917eae1bf66290e1bd8ccd3db69d3fe63 (patch) | |
tree | 8cf1786b63a093145832a672719a59f731675007 /apps | |
parent | 624265c60e07f8e5f251d0f5b79e34cf0221af73 (diff) |
When apps_startup() fails, exit with a failure code and a message
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3816)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/openssl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index b2d4e6f208..2a140718ab 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -144,8 +144,13 @@ int main(int argc, char *argv[]) return 1; } - if (!apps_startup()) + if (!apps_startup()) { + BIO_printf(bio_err, + "FATAL: Startup failure (dev note: apps_startup() failed)\n"); + ERR_print_errors(bio_err); + ret = 1; goto end; + } prog = prog_init(); pname = opt_progname(argv[0]); |