mirror of https://github.com/openssl/openssl.git
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)
This commit is contained in:
parent
624265c60e
commit
f2da4a4917
|
|
@ -144,8 +144,13 @@ int main(int argc, char *argv[])
|
||||||
return 1;
|
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;
|
goto end;
|
||||||
|
}
|
||||||
|
|
||||||
prog = prog_init();
|
prog = prog_init();
|
||||||
pname = opt_progname(argv[0]);
|
pname = opt_progname(argv[0]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue