summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-01 01:57:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:52 -0500
commit118313f9a390a4904c5cfb17e42cd8506ac49f3a (patch)
treeebb49e1128291c23feeb6d54c729e10fa6fd5155
parentb7e20c87e317ae73feb7f393a38d0ab0fa64d5d8 (diff)
downloadsamba-118313f9a390a4904c5cfb17e42cd8506ac49f3a.tar.gz
samba-118313f9a390a4904c5cfb17e42cd8506ac49f3a.tar.bz2
samba-118313f9a390a4904c5cfb17e42cd8506ac49f3a.zip
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)
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm2
1 files changed, 2 insertions, 0 deletions
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));