1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r5396: fixed parsing of NBT type 0xc0 compressed name pointers

(This used to be commit 666cc65d10012fa2a413dfa619fbc4599f752728)
This commit is contained in:
Andrew Tridgell 2005-02-14 11:31:48 +00:00 committed by Gerald (Jerry) Carter
parent 8c76eb2672
commit 240829d53e

View File

@ -55,8 +55,9 @@ static NTSTATUS ndr_pull_component(struct ndr_pull *ndr, uint8_t **component,
if (1 + *offset >= ndr->data_size) { if (1 + *offset >= ndr->data_size) {
return NT_STATUS_BAD_NETWORK_NAME; return NT_STATUS_BAD_NETWORK_NAME;
} }
*max_offset = MAX(*max_offset, *offset + 2);
*offset = ((len&0x3F)<<8) | ndr->data[1 + *offset]; *offset = ((len&0x3F)<<8) | ndr->data[1 + *offset];
*max_offset = MAX(*max_offset, *offset + 1); *max_offset = MAX(*max_offset, *offset);
loops++; loops++;
continue; continue;
} }