mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
check mval for NULL too
This commit is contained in:
parent
0db46a7dd7
commit
b6b094fb77
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user