mirror of
https://github.com/samba-team/samba.git
synced 2025-03-29 02:50:28 +03:00
libndr: add support for relative_rap_convert.
Will not harm anyone, is only used for rare short (2byte) relative pointers, and relative_rap_convert is always 0 so far (as all init functions using struct ndr_pull will zero the struct). Guenther
This commit is contained in:
parent
49a80fe671
commit
7bcd9c5583
@ -62,6 +62,7 @@ struct ndr_pull {
|
||||
|
||||
uint32_t relative_highest_offset;
|
||||
uint32_t relative_base_offset;
|
||||
uint32_t relative_rap_convert;
|
||||
struct ndr_token_list *relative_base_list;
|
||||
|
||||
struct ndr_token_list *relative_list;
|
||||
|
@ -185,6 +185,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_relative_ptr_short(struct ndr_pull *ndr, uin
|
||||
if (*v != 0) {
|
||||
ndr->ptr_count++;
|
||||
}
|
||||
*(v) -= ndr->relative_rap_convert;
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user