check mval for NULL too
authorDr. Stephen Henson <steve@openssl.org>
Tue, 4 Dec 2012 17:26:36 +0000 (17:26 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 4 Dec 2012 17:26:36 +0000 (17:26 +0000)
apps/apps.c

index 16d61624a1c3c7351743fa04c6b89e3e15822d91..f9fe9a2af1c5a717178869d28735e1af266741b1 100644 (file)
@@ -2052,7 +2052,7 @@ X509_NAME *parse_name(char *subject, long chtype, int multirdn)
        X509_NAME *n = NULL;
        int nid;
 
-       if (!buf || !ne_types || !ne_values)
+       if (!buf || !ne_types || !ne_values || !mval)
                {
                BIO_printf(bio_err, "malloc error\n");
                goto error;