From: Dr. Stephen Henson Date: Thu, 31 Aug 2006 20:11:09 +0000 (+0000) Subject: Fix from HEAD. X-Git-Tag: OpenSSL_0_9_8c~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=340b4dd7dfa60ff5405b90c0482cd84bdfa59fc8;p=openssl Fix from HEAD. --- diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c index f8b27cffdb..0294d8e766 100644 --- a/crypto/asn1/tasn_dec.c +++ b/crypto/asn1/tasn_dec.c @@ -878,7 +878,10 @@ static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, * for UNIVERSAL class and ignore the tag. */ if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL)) + { + free_cont = 1; goto err; + } len = buf.length; /* Append a final null to string */ if (!BUF_MEM_grow_clean(&buf, len + 1))