]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pidl:NDR/Parser: add missing {start,end}_flags() to ParseElementPrint()
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Jun 2017 16:58:49 +0000 (18:58 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 13 Jul 2017 08:51:17 +0000 (10:51 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 81bbfb010599b65308aca89cc50532372ca4cb00)

pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm

index 94f4855dd6e4af288d995ecd95ddaa9e3f27ec30..044e1d18187f08e0120735da4bd9aa8cda4492e4 100644 (file)
@@ -839,8 +839,10 @@ sub ParseElementPrint($$$$$)
        my $cur_depth = 0;
        my $ignore_depth = 0xFFFF;
 
+       $self->start_flags($e, $ndr);
        if ($e->{REPRESENTATION_TYPE} ne $e->{TYPE}) {
                $self->pidl("ndr_print_$e->{REPRESENTATION_TYPE}($ndr, \"$e->{NAME}\", $var_name);");
+               $self->end_flags($e, $ndr);
                return;
        }
 
@@ -935,6 +937,8 @@ sub ParseElementPrint($$$$$)
                        $self->pidl("$ndr->depth--;");
                }
        }
+
+       $self->end_flags($e, $ndr);
 }
 
 #####################################################################