summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-17 13:47:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:10 -0500
commitb379e50351c7cd7069ab75115a39749d6eba60ac (patch)
tree099979b5491e841a1ecf5fd066ea3a758e5a447d /source4/pidl/lib/Parse/Pidl
parent456f3b378d79a32b3092a0f8e11c81ed29f89ddd (diff)
downloadsamba-b379e50351c7cd7069ab75115a39749d6eba60ac.tar.gz
samba-b379e50351c7cd7069ab75115a39749d6eba60ac.tar.bz2
samba-b379e50351c7cd7069ab75115a39749d6eba60ac.zip
r24523: we don't support multi-dimentional [out] arrays
for the samba3 server stubs yet, so bail out. metze (This used to be commit ff11f2ce0c3f9c882d93bda0c89577adaf8c2a41)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index cc5057aef4..a8e7c347b3 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -72,6 +72,14 @@ sub AllocOutVar($$$$)
$l = $nl if ($nl->{TYPE} eq "ARRAY");
}
+ # we don't support multi-dimentional arrays yet
+ if ($l->{TYPE} eq "ARRAY") {
+ my $nl = GetNextLevel($e, $l);
+ if ($nl->{TYPE} eq "ARRAY") {
+ fatal($e->{ORIGINAL},"multi-dimentional [out] arrays are not supported!");
+ }
+ }
+
if ($l->{TYPE} eq "ARRAY") {
my $size = ParseExpr($l->{SIZE_IS}, $env, $e);
pidl "$name = talloc_zero_array($mem_ctx, " . DeclLevel($e, 1) . ", $size);";