summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlteo <>2014-04-18 18:07:59 +0000
committerlteo <>2014-04-18 18:07:59 +0000
commitebff99f7df5983493dd681ba422bd944a3e5c888 (patch)
tree8c12cf18d2f8389bce321adc334ea73c1a9f0133 /src
parent49d64072117add2cb12024e748647311ccb0439e (diff)
downloadopenbsd-ebff99f7df5983493dd681ba422bd944a3e5c888.tar.gz
openbsd-ebff99f7df5983493dd681ba422bd944a3e5c888.tar.bz2
openbsd-ebff99f7df5983493dd681ba422bd944a3e5c888.zip
Check the return value of make_config_name() before attempting to use
the config filename. ok beck@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/src/apps/openssl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/src/apps/openssl.c b/src/lib/libssl/src/apps/openssl.c
index 9f01e3c576..008bbdc08b 100644
--- a/src/lib/libssl/src/apps/openssl.c
+++ b/src/lib/libssl/src/apps/openssl.c
@@ -258,8 +258,13 @@ main(int Argc, char *ARGV[])
258 p = getenv("OPENSSL_CONF"); 258 p = getenv("OPENSSL_CONF");
259 if (p == NULL) 259 if (p == NULL)
260 p = getenv("SSLEAY_CONF"); 260 p = getenv("SSLEAY_CONF");
261 if (p == NULL) 261 if (p == NULL) {
262 p = to_free = make_config_name(); 262 p = to_free = make_config_name();
263 if (p == NULL) {
264 BIO_printf(bio_err, "error making config file name\n");
265 goto end;
266 }
267 }
263 268
264 default_config_file = p; 269 default_config_file = p;
265 270