From: Dr. Stephen Henson Date: Tue, 31 Jan 2006 18:38:06 +0000 (+0000) Subject: Fix from head. X-Git-Tag: OpenSSL_FIPS_1_0~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a2466a08df397baa7cd9a0f9ecd08c205802c97;p=oweals%2Fopenssl.git Fix from head. --- diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c index d9aafacbdf..c22501fc63 100644 --- a/crypto/asn1/tasn_dec.c +++ b/crypto/asn1/tasn_dec.c @@ -903,7 +903,7 @@ static int asn1_collect(BUF_MEM *buf, unsigned char **in, long len, char inf, in return 0; #endif } else { - if(!collect_data(buf, &p, plen)) return 0; + if(plen && !collect_data(buf, &p, plen)) return 0; } len -= p - q; }