Ignore zero length constructed segments.
This commit is contained in:
parent
826b52d26f
commit
c7474d077b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue