1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

pidl:NDR/Parser.pm: update ndr_pull->relative_highest_offset after handling relative pointers

metze
This commit is contained in:
Stefan Metzmacher 2009-11-20 12:11:41 +01:00
parent 4b6c03a108
commit 05850d1894

View File

@ -1053,7 +1053,12 @@ 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") {
$self->pidl("if ($ndr->offset > $ndr->relative_highest_offset) {");
$self->indent;
$self->pidl("$ndr->relative_highest_offset = $ndr->offset;");
$self->deindent;
$self->pidl("}");
$self->pidl("$ndr->offset = _relative_save_offset;");
}
$self->deindent;