From 05347754ee61f06466d6d9b7f390001992f793ce Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 14 Dec 2009 15:33:32 +0100 Subject: libndr: store a subcontext buffer size in ndr_push_subcontext_start. Guenther --- librpc/ndr/libndr.h | 1 + librpc/ndr/ndr.c | 1 + 2 files changed, 2 insertions(+) (limited to 'librpc') diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index 124c5f0d6e..41e214da2a 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -86,6 +86,7 @@ struct ndr_push { uint32_t offset; uint32_t relative_base_offset; + uint32_t relative_end_offset; struct ndr_token_list *relative_base_list; struct ndr_token_list *switch_list; diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index 0ff43c3eb4..e78b7ee94a 100644 --- 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; -- cgit