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:
parent
4b6c03a108
commit
05850d1894
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user