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

index 1ad0e137d12adefa5d15b802f1b58c004012dd4e..34dc70b35453a664e3a9913ee754501bef8dc928 100644 (file)
@@ -2251,7 +2251,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;