check mval for NULL too

This commit is contained in:
Dr. Stephen Henson 2012-12-04 17:26:13 +00:00
parent 54fdc39a08
commit a650314f72

View 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;