Fix from HEAD.

This commit is contained in:
Dr. Stephen Henson 2006-01-31 18:37:41 +00:00
parent 4d018f7067
commit c42cd4b831

View file

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