1
0
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:
Jeremy Allison
2006-06-13 18:15:03 +00:00
committed by Gerald (Jerry) Carter
parent edcffcbe28
commit 92db75b4a2

View File

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