From 41f1c3969a3f381379ca665b2d992070c8e50227 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 8 May 2013 10:21:15 +0200 Subject: pidl:NDR/Parser: correctly set $ndr->[relative_highest_]offset for relative_short pointers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed May 8 20:49:55 CEST 2013 on sn-devel-104 --- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;"); -- cgit