--- openssl-orig/crypto/conf/conf_def.c	2015-01-20 09:32:41.244565491 -0500
+++ openssl-work/crypto/conf/conf_def.c	2015-01-20 09:32:33.382620134 -0500
@@ -618,7 +618,11 @@
 				CONFerr(CONF_F_STR_COPY,CONF_R_VARIABLE_HAS_NO_V
ALUE);
 				goto err;
 				}
-			BUF_MEM_grow_clean(buf,(strlen(p)+buf->length-(e-from)))
;
+			if (!BUF_MEM_grow_clean(buf,(strlen(p)+buf->length-(e-fr
om))))
+			    {
+			    CONFerr(CONF_F_STR_COPY,ERR_R_MALLOC_FAILURE);
+			    goto err;
+			    }
 			while (*p)
 				buf->data[to++]= *(p++);
