summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/conf/conf_mod.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2016-09-22 14:57:48 +0000
committerjkim <jkim@FreeBSD.org>2016-09-22 14:57:48 +0000
commit5ced369491e2445d728a27ad06e09d01930f0c6b (patch)
tree73fe15f4db2d52cd64cd8952bb5f8f991a9dc558 /crypto/openssl/crypto/conf/conf_mod.c
parent65eee2e6f94289d9f4d416f06c304a714747b721 (diff)
downloadFreeBSD-src-5ced369491e2445d728a27ad06e09d01930f0c6b.zip
FreeBSD-src-5ced369491e2445d728a27ad06e09d01930f0c6b.tar.gz
MFC: r306193
Merge OpenSSL 1.0.2u.
Diffstat (limited to 'crypto/openssl/crypto/conf/conf_mod.c')
-rw-r--r--crypto/openssl/crypto/conf/conf_mod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/conf/conf_mod.c b/crypto/openssl/crypto/conf/conf_mod.c
index 9acfca4..e0c9a67 100644
--- a/crypto/openssl/crypto/conf/conf_mod.c
+++ b/crypto/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;
OpenPOWER on IntegriCloud