summaryrefslogtreecommitdiff
path: root/thirdparty/openssl/crypto/conf/conf_mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/openssl/crypto/conf/conf_mod.c')
-rw-r--r--thirdparty/openssl/crypto/conf/conf_mod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thirdparty/openssl/crypto/conf/conf_mod.c b/thirdparty/openssl/crypto/conf/conf_mod.c
index 9acfca4f71..e0c9a67ff6 100644
--- a/thirdparty/openssl/crypto/conf/conf_mod.c
+++ b/thirdparty/openssl/crypto/conf/conf_mod.c
@@ -288,6 +288,10 @@ static CONF_MODULE *module_add(DSO *dso, const char *name,
tmod->dso = dso;
tmod->name = BUF_strdup(name);
+ if (tmod->name == NULL) {
+ OPENSSL_free(tmod);
+ return NULL;
+ }
tmod->init = ifunc;
tmod->finish = ffunc;
tmod->links = 0;