From 4015adf0a3d352cc4013c722f1b2d5374989ac4c Mon Sep 17 00:00:00 2001 From: Roumen Petrov Date: Fri, 12 Feb 2016 22:18:59 +0200 Subject: [PATCH] Fix OPENSSL_config with NULL parameter Reviewed-by: Richard Levitte --- crypto/conf/conf_sap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c index 2021a02c5d..e70fb7a738 100644 --- a/crypto/conf/conf_sap.c +++ b/crypto/conf/conf_sap.c @@ -81,7 +81,8 @@ void OPENSSL_config(const char *config_name) OPENSSL_INIT_SETTINGS settings; memset(&settings, 0, sizeof(settings)); - settings.config_name = strdup(config_name); + if (config_name != NULL) + settings.config_name = strdup(config_name); OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, &settings); } #endif -- 2.25.1