diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-01-31 18:36:29 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-01-31 18:36:29 +0000 |
commit | c7474d077bbb502d0e774d000b74a82121f5e7cf (patch) | |
tree | 40ac0389755a08689dc74895d395c39c4deb6ca7 /crypto/asn1/tasn_dec.c | |
parent | 826b52d26fb8061c0ec52c1dba3d6c88351e547e (diff) |
Ignore zero length constructed segments.
Diffstat (limited to 'crypto/asn1/tasn_dec.c')
-rw-r--r-- | crypto/asn1/tasn_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |