mirror of
https://github.com/samba-team/samba.git
synced 2025-08-09 17:49:29 +03:00
r16202: Fix Klocwork #3. Strange - was already fixed in HEAD.
Jeremy.
(This used to be commit 319f80bbf0
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
edcffcbe28
commit
92db75b4a2
@ -268,17 +268,22 @@ BOOL asn1_start_tag(ASN1_DATA *data, uint8 tag)
|
||||
}
|
||||
|
||||
if (!asn1_read_uint8(data, &b)) {
|
||||
SAFE_FREE(nesting);
|
||||
return False;
|
||||
}
|
||||
|
||||
if (b & 0x80) {
|
||||
int n = b & 0x7f;
|
||||
if (!asn1_read_uint8(data, &b))
|
||||
if (!asn1_read_uint8(data, &b)) {
|
||||
SAFE_FREE(nesting);
|
||||
return False;
|
||||
}
|
||||
nesting->taglen = b;
|
||||
while (n > 1) {
|
||||
if (!asn1_read_uint8(data, &b))
|
||||
if (!asn1_read_uint8(data, &b)) {
|
||||
SAFE_FREE(nesting);
|
||||
return False;
|
||||
}
|
||||
nesting->taglen = (nesting->taglen << 8) | b;
|
||||
n--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user