diff options
-rw-r--r-- | crypto/conf/conf_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/conf/conf_lib.c b/crypto/conf/conf_lib.c index 29357b26ad..a84b643fc2 100644 --- a/crypto/conf/conf_lib.c +++ b/crypto/conf/conf_lib.c @@ -381,7 +381,8 @@ OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void) { OPENSSL_INIT_SETTINGS *ret = malloc(sizeof(*ret)); - memset(ret, 0, sizeof(*ret)); + if (ret != NULL) + memset(ret, 0, sizeof(*ret)); return ret; } |