From c42cd4b8310ed218bd0ba6ece99c1b9d17277a98 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 31 Jan 2006 18:37:41 +0000 Subject: [PATCH] Fix from HEAD. --- crypto/asn1/tasn_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1