git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659d029
)
r4112: when a pointer is NULL on the wire ensure it is null in the structure
author
Andrew Tridgell
<tridge@samba.org>
Thu, 9 Dec 2004 07:51:20 +0000
(07:51 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:06:27 +0000
(13:06 -0500)
source/build/pidl/parser.pm
patch
|
blob
|
history
diff --git
a/source/build/pidl/parser.pm
b/source/build/pidl/parser.pm
index 4461bb77af25d32e97e00aa9c70990042d745271..59912cecd43a7b9b27d46309c496253e835b4405 100644
(file)
--- a/
source/build/pidl/parser.pm
+++ b/
source/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";