mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Ignore zero length constructed segments.
This commit is contained in:
parent
826b52d26f
commit
c7474d077b
@ -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 New Issue
Block a user