summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-05-08 10:21:15 +0200
committerJeremy Allison <jra@samba.org>2013-05-08 20:49:55 +0200
commit41f1c3969a3f381379ca665b2d992070c8e50227 (patch)
treef68824df4323d3fb5047ebef8e5ee5ebef7345c9 /pidl/lib/Parse/Pidl
parent5732c6840350f18dd779d5a088bc825a9d1b4069 (diff)
downloadsamba-41f1c3969a3f381379ca665b2d992070c8e50227.tar.gz
samba-41f1c3969a3f381379ca665b2d992070c8e50227.tar.bz2
samba-41f1c3969a3f381379ca665b2d992070c8e50227.zip
pidl:NDR/Parser: correctly set $ndr->[relative_highest_]offset for relative_short pointers
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed May 8 20:49:55 CEST 2013 on sn-devel-104
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index 5ffb67846b..54b6f132df 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@ -1171,7 +1171,7 @@ sub ParseElementPullLevel
$self->ParseMemCtxPullEnd($e, $l, $ndr);
if ($l->{POINTER_TYPE} ne "ref") {
- if ($l->{POINTER_TYPE} eq "relative") {
+ if ($l->{POINTER_TYPE} eq "relative" or $l->{POINTER_TYPE} eq "relative_short") {
$self->pidl("if ($ndr->offset > $ndr->relative_highest_offset) {");
$self->indent;
$self->pidl("$ndr->relative_highest_offset = $ndr->offset;");