From 118313f9a390a4904c5cfb17e42cd8506ac49f3a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 1 May 2007 01:57:17 +0000 Subject: r22617: assume we have defered elements if the type is just provides via 'declare' this should fix the problem with the winbind IRPC calls metze (This used to be commit 5abbb4673a49a9dee4002cc6f2ee8180b85cb5e5) --- source4/pidl/lib/Parse/Pidl/NDR.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/pidl/lib/Parse/Pidl/NDR.pm') diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm index 1d7ca16707..d2556cb8e6 100644 --- a/source4/pidl/lib/Parse/Pidl/NDR.pm +++ b/source4/pidl/lib/Parse/Pidl/NDR.pm @@ -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)); -- cgit