summaryrefslogtreecommitdiff
path: root/source4/pidl/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-15 17:34:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:46 -0500
commit291c5ed53c9957d1da981fa39477b046b94fe192 (patch)
treed37aaf68edb34ed6a7e59921341403bab318631e /source4/pidl/lib
parentfa257e78b5e1de1ba12e12968b1b2a6edbead7c6 (diff)
downloadsamba-291c5ed53c9957d1da981fa39477b046b94fe192.tar.gz
samba-291c5ed53c9957d1da981fa39477b046b94fe192.tar.bz2
samba-291c5ed53c9957d1da981fa39477b046b94fe192.zip
r18559: [string] always applies to the last pointer
(This used to be commit 86b4624226d6e72645221cadb8669b0f1aba0903)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm
index 114de797b8..f602bd2d68 100644
--- a/source4/pidl/lib/Parse/Pidl/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/NDR.pm
@@ -204,7 +204,8 @@ sub GetElementLevelTable($)
}
}
- if (scalar(@size_is) == 0 and has_property($e, "string")) {
+ if (scalar(@size_is) == 0 and has_property($e, "string") and
+ $i == $e->{POINTERS}) {
$is_string = 1;
$is_varying = $is_conformant = has_property($e, "noheader")?0:1;
delete($e->{PROPERTIES}->{string});