Fix from head.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 31 Jan 2006 18:38:06 +0000 (18:38 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 31 Jan 2006 18:38:06 +0000 (18:38 +0000)
crypto/asn1/tasn_dec.c

index d9aafacbdfc46f0e8342cd78363eca08b3605050..c22501fc63b55757856a6060557c094efff85762 100644 (file)
@@ -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;
        }