From 5ac54c34b197a8414023217b6c125d1686309de1 Mon Sep 17 00:00:00 2001 From: lteo Date: Fri, 18 Apr 2014 18:07:59 +0000 Subject: [PATCH] Check the return value of make_config_name() before attempting to use the config filename. ok beck@ --- lib/libssl/src/apps/openssl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/libssl/src/apps/openssl.c b/lib/libssl/src/apps/openssl.c index 9f01e3c5766..008bbdc08b7 100644 --- a/lib/libssl/src/apps/openssl.c +++ b/lib/libssl/src/apps/openssl.c @@ -258,8 +258,13 @@ main(int Argc, char *ARGV[]) p = getenv("OPENSSL_CONF"); if (p == NULL) p = getenv("SSLEAY_CONF"); - if (p == NULL) + if (p == NULL) { p = to_free = make_config_name(); + if (p == NULL) { + BIO_printf(bio_err, "error making config file name\n"); + goto end; + } + } default_config_file = p; -- 2.20.1