r4112: when a pointer is NULL on the wire ensure it is null in the structure
authorAndrew Tridgell <tridge@samba.org>
Thu, 9 Dec 2004 07:51:20 +0000 (07:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:27 +0000 (13:06 -0500)
source/build/pidl/parser.pm

index 4461bb77af25d32e97e00aa9c70990042d745271..59912cecd43a7b9b27d46309c496253e835b4405 100644 (file)
@@ -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";