mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r1851: if we try to peek a subtag, check if the parent tag has remaining data
metze
(This used to be commit 01626ed381
)
This commit is contained in:
parent
0320233d15
commit
69d6435358
@ -264,6 +264,10 @@ BOOL asn1_peek_tag(ASN1_DATA *data, uint8_t tag)
|
||||
{
|
||||
uint8_t b;
|
||||
|
||||
if (asn1_tag_remaining(data) <= 0) {
|
||||
return False;
|
||||
}
|
||||
|
||||
if (!asn1_peek(data, &b, sizeof(b)))
|
||||
return False;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user