1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

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
This commit is contained in:
Stefan Metzmacher 2013-05-08 10:21:15 +02:00 committed by Jeremy Allison
parent 5732c68403
commit 41f1c3969a

View File

@ -1171,7 +1171,7 @@ sub ParseElementPullLevel
$self->ParseMemCtxPullEnd($e, $l, $ndr); $self->ParseMemCtxPullEnd($e, $l, $ndr);
if ($l->{POINTER_TYPE} ne "ref") { 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->pidl("if ($ndr->offset > $ndr->relative_highest_offset) {");
$self->indent; $self->indent;
$self->pidl("$ndr->relative_highest_offset = $ndr->offset;"); $self->pidl("$ndr->relative_highest_offset = $ndr->offset;");