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

index 02d76516bd1e08328c7b3306770e4cd2bdbe5827..3316e26a5c4ec99b910d266caa20f6e199a31d09 100644 (file)
@@ -2132,7 +2132,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;