From b61a87b26ca3ccbf97f298fa347620bc529678ef Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 10 Nov 2009 00:46:57 +0000 Subject: [PATCH] check new_der for NULL too --- crypto/asn1/asn1_gen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/asn1/asn1_gen.c b/crypto/asn1/asn1_gen.c index b066dc9eae..213a8e986c 100644 --- a/crypto/asn1/asn1_gen.c +++ b/crypto/asn1/asn1_gen.c @@ -227,6 +227,8 @@ ASN1_TYPE *ASN1_generate_v3(char *str, X509V3_CTX *cnf) /* Allocate buffer for new encoding */ new_der = OPENSSL_malloc(len); + if (!new_der) + goto err; /* Generate tagged encoding */ -- 2.25.1