svn commit: samba r4112 - in branches/SAMBA_4_0/source/build/pidl: .
tridge at samba.org
tridge at samba.org
Thu Dec 9 07:51:20 GMT 2004
Author: tridge
Date: 2004-12-09 07:51:20 +0000 (Thu, 09 Dec 2004)
New Revision: 4112
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4112
Log:
when a pointer is NULL on the wire ensure it is null in the structure
Modified:
branches/SAMBA_4_0/source/build/pidl/parser.pm
Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/parser.pm
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/parser.pm 2004-12-09 07:05:47 UTC (rev 4111)
+++ branches/SAMBA_4_0/source/build/pidl/parser.pm 2004-12-09 07:51:20 UTC (rev 4112)
@@ -1348,6 +1348,7 @@
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";
More information about the samba-cvs
mailing list