r22617: assume we have defered elements if the type is just provides via
authorStefan Metzmacher <metze@samba.org>
Tue, 1 May 2007 01:57:17 +0000 (01:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:51:52 +0000 (14:51 -0500)
'declare' this should fix the problem with the winbind IRPC calls

metze

source/pidl/lib/Parse/Pidl/NDR.pm

index 1d7ca1670794500068976eb788ac51c2b8c9cf01..d2556cb8e60503639f0da263bac5ac294421b915 100644 (file)
@@ -281,6 +281,8 @@ sub can_contain_deferred($)
 
        my $type = getType($e->{TYPE});
 
+       return 1 if ($type->{TYPE} eq "DECLARE"); # assume the worst
+
        foreach my $x (@{$type->{DATA}->{ELEMENTS}}) {
                return 1 if ($x->{POINTERS});
                return 1 if (can_contain_deferred ($x));