r9795: fix the ndr_pull_string code to handle, some special cases,
commit172089214ed7bc30440f876262943cd5c2faafe7
authorStefan Metzmacher <metze@samba.org>
Tue, 30 Aug 2005 13:34:12 +0000 (30 13:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:35:02 +0000 (10 13:35 -0500)
treea62a6fba7b808f6ec0f7cc4d5f18f9854f11fe78
parent89e550ba34d1f00b576aae3d4683ca9ca36afe80
r9795: fix the ndr_pull_string code to handle, some special cases,
where the idl was something like this:

uint32 size;
[size_is(size+1)] wchar_t *string;

we always need a pair of NDR_PULL_NEEDED_BYTES() and ndr_pull_advance(),
with the same size passed in.

metze
(This used to be commit 8eb75bd5ac5869f11f930ec872ec8a46fba9361b)
source4/librpc/ndr/ndr_string.c