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:
parent
5732c68403
commit
41f1c3969a
@ -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;");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user