In apps, malloc or die
[openssl.git] / apps / openssl.c
index 786f5d3df83c36f200d70ccd86bd4be04644ecc9..f6013f70acc188ee4e7b6b04c6b61e22b2721caf 100644 (file)
@@ -204,9 +204,7 @@ static char *make_config_name()
     char *p;
 
     len = strlen(t) + strlen(OPENSSL_CONF) + 2;
-    p = OPENSSL_malloc(len);
-    if (p == NULL)
-        return NULL;
+    p = app_malloc(len, "config filename buffer");
     BUF_strlcpy(p, t, len);
 #ifndef OPENSSL_SYS_VMS
     BUF_strlcat(p, "/", len);