Ignore zero length constructed segments.

This commit is contained in:
Dr. Stephen Henson 2006-01-31 18:36:29 +00:00
parent 826b52d26f
commit c7474d077b

View File

@ -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;
}