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:
parent
b75f8fe184
commit
666cc65d10
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user