--- conf_mod.c.orig	2016-03-06 05:46:50.424008381 -0800
+++ conf_mod.c	2016-03-06 05:47:49.031457086 -0800
@@ -288,6 +288,10 @@
 
     tmod->dso = dso;
     tmod->name = BUF_strdup(name);
+    if (!tmod->name) {
+	OPENSSL_free(tmod);
+	return NULL;
+    }
     tmod->init = ifunc;
     tmod->finish = ffunc;
     tmod->links = 0;
