From: Dr. Stephen Henson Date: Tue, 31 Jan 2006 18:36:29 +0000 (+0000) Subject: Ignore zero length constructed segments. X-Git-Tag: OpenSSL_0_9_8k^2~1577 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7474d077bbb502d0e774d000b74a82121f5e7cf;p=oweals%2Fopenssl.git Ignore zero length constructed segments. --- diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c index f369fcb9bb..ffec26f2f3 100644 --- a/crypto/asn1/tasn_dec.c +++ b/crypto/asn1/tasn_dec.c @@ -1169,7 +1169,7 @@ static int asn1_collect(BUF_MEM *buf, const unsigned char **in, long len, return 0; #endif } - else if (!collect_data(buf, &p, plen)) + else if (plen && !collect_data(buf, &p, plen)) return 0; len -= p - q; }