From ff470041c2918e12fd2c5e298fd5ecbfcc74cb5f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 9 Dec 2004 07:51:20 +0000 Subject: r4112: when a pointer is NULL on the wire ensure it is null in the structure (This used to be commit 83221a0da07bf7c45757e737782f2f4ee541ad88) --- source4/build/pidl/parser.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/build') diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm index 4461bb77af..59912cecd4 100644 --- a/source4/build/pidl/parser.pm +++ b/source4/build/pidl/parser.pm @@ -1348,6 +1348,7 @@ sub ParseFunctionElementPull($$) if (util::array_size($e)) { if (util::need_wire_pointer($e)) { pidl "\tNDR_CHECK(ndr_pull_ptr(ndr, &_ptr_$e->{NAME}));\n"; + pidl "\tr->$inout.$e->{NAME} = NULL;\n"; pidl "\tif (_ptr_$e->{NAME}) {\n"; } elsif ($inout eq "out" && util::has_property($e, "ref")) { pidl "\tif (r->$inout.$e->{NAME}) {\n"; -- cgit