From: Dr. Stephen Henson Date: Tue, 31 Jan 2006 18:37:41 +0000 (+0000) Subject: Fix from HEAD. X-Git-Tag: OpenSSL_0_9_8b~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c42cd4b8310ed218bd0ba6ece99c1b9d17277a98;p=oweals%2Fopenssl.git Fix from HEAD. --- diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c index 2b9c25611e..eddaae6c9d 100644 --- a/crypto/asn1/tasn_dec.c +++ b/crypto/asn1/tasn_dec.c @@ -1167,7 +1167,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; }