1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

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

This commit is contained in:
Andrew Tridgell 2005-02-14 11:31:48 +00:00 committed by Gerald (Jerry) Carter
parent b75f8fe184
commit 666cc65d10

View File

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