summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-24 11:45:33 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-24 11:45:33 +0000
commitbbb11d4a0dc02a6125855620e0a59a6b24107e4d (patch)
treeeccf9712b09d9936a5e8eed05c72596a3e8035c7 /source4/build
parent5e64ecac2f2de4888d83872aaf273e3c1882c772 (diff)
downloadsamba-bbb11d4a0dc02a6125855620e0a59a6b24107e4d.tar.gz
samba-bbb11d4a0dc02a6125855620e0a59a6b24107e4d.tar.bz2
samba-bbb11d4a0dc02a6125855620e0a59a6b24107e4d.zip
* prepared the dcerpc subsystem for adding the RPC over TCP transport
* fixed a uninitialised variable bug in pidl (found by valgrind) (This used to be commit 8bce61b8af6351c72c0dd84dc61b49d8aeb1fbbd)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/pidl/parser.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm
index e536ab083d..a7dad3707c 100644
--- a/source4/build/pidl/parser.pm
+++ b/source4/build/pidl/parser.pm
@@ -1176,10 +1176,10 @@ sub ParseFunctionElementPull($$)
if (util::need_wire_pointer($e)) {
pidl "\tNDR_CHECK(ndr_pull_uint32(ndr, &_ptr_$e->{NAME}));\n";
pidl "\tif (_ptr_$e->{NAME}) {\n";
- } elsif ($inout eq "in" && util::has_property($e, "ref")) {
- pidl "\t{\n";
- } else {
+ } elsif ($inout eq "out" && util::has_property($e, "ref")) {
pidl "\tif (r->$inout.$e->{NAME}) {\n";
+ } else {
+ pidl "\t{\n";
}
ParseArrayPull($e, "r->$inout.", "NDR_SCALARS|NDR_BUFFERS");
pidl "\t}\n";