summaryrefslogtreecommitdiff
path: root/pidl/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-09 19:38:30 +0200
committerStefan Metzmacher <metze@samba.org>2010-08-09 19:39:10 +0200
commita22989a54afd411a8d038110c7df2c545b4121b7 (patch)
treec989516f8286d13298906cf8ec71db4652f74d85 /pidl/lib
parentbe396411a4e1f3a174f8a44b6c062d834135e70a (diff)
downloadsamba-a22989a54afd411a8d038110c7df2c545b4121b7.tar.gz
samba-a22989a54afd411a8d038110c7df2c545b4121b7.tar.bz2
samba-a22989a54afd411a8d038110c7df2c545b4121b7.zip
pidl:NDR: correctly handle no pointer bracket arrays with 'string'
metze
Diffstat (limited to 'pidl/lib')
-rw-r--r--pidl/lib/Parse/Pidl/NDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm
index 20f52bf9d5..2358a25956 100644
--- a/pidl/lib/Parse/Pidl/NDR.pm
+++ b/pidl/lib/Parse/Pidl/NDR.pm
@@ -125,7 +125,7 @@ sub GetElementLevelTable($$)
if ($d eq "*") {
$is_conformant = 1;
if ($size = shift @size_is) {
- if (has_property($e, "string")) {
+ if ($e->{POINTERS} < 1 and has_property($e, "string")) {
$is_string = 1;
delete($e->{PROPERTIES}->{string});
}