From b6b094fb77b72ed115642366d31581f870f0beee Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 4 Dec 2012 17:25:34 +0000 Subject: [PATCH] check mval for NULL too --- apps/apps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/apps.c b/apps/apps.c index 1ad0e137d1..34dc70b354 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -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; -- 2.25.1