git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libndr: store a subcontext buffer size in ndr_push_subcontext_start.
[ira/wip.git]
/
librpc
/
ndr
/
ndr.c
diff --git
a/librpc/ndr/ndr.c
b/librpc/ndr/ndr.c
index 0ff43c3eb4595a9a2e8e9d1f40ad6e5dc2489a10..e78b7ee94a3a565cf4ca8dede03f5343581b76dd 100644
(file)
--- a/
librpc/ndr/ndr.c
+++ b/
librpc/ndr/ndr.c
@@
-596,6
+596,7
@@
_PUBLIC_ enum ndr_err_code ndr_push_subcontext_start(struct ndr_push *ndr,
if (size_is > 0) {
NDR_CHECK(ndr_push_zero(subndr, size_is));
subndr->offset = 0;
+ subndr->relative_end_offset = size_is;
}
*_subndr = subndr;