1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +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:
Günther Deschner
2010-04-30 01:08:07 +02:00
parent 49a80fe671
commit 7bcd9c5583
2 changed files with 2 additions and 0 deletions

View File

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