From: Dr. Stephen Henson Date: Tue, 10 Nov 2009 00:46:57 +0000 (+0000) Subject: check new_der for NULL too X-Git-Tag: OpenSSL_0_9_8m-beta1~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b61a87b26ca3ccbf97f298fa347620bc529678ef;p=oweals%2Fopenssl.git check new_der for NULL too --- 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 */