1
0
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:
Stefan Metzmacher 2004-08-17 10:04:25 +00:00 committed by Gerald (Jerry) Carter
parent 0320233d15
commit 69d6435358

View File

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