summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-09 07:51:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:27 -0500
commitff470041c2918e12fd2c5e298fd5ecbfcc74cb5f (patch)
tree2724e1b3e5415d1bb2a328268933333728b54910 /source4/build
parentaad22cabbf52c2d5cea9ee80fa8e1960944f9d7e (diff)
downloadsamba-ff470041c2918e12fd2c5e298fd5ecbfcc74cb5f.tar.gz
samba-ff470041c2918e12fd2c5e298fd5ecbfcc74cb5f.tar.bz2
samba-ff470041c2918e12fd2c5e298fd5ecbfcc74cb5f.zip
r4112: when a pointer is NULL on the wire ensure it is null in the structure
(This used to be commit 83221a0da07bf7c45757e737782f2f4ee541ad88)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/pidl/parser.pm1
1 files changed, 1 insertions, 0 deletions
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";