diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-09-24 20:51:44 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-09-25 03:52:56 +0000 |
commit | 7c56a5affbea32db0e2ee1ffd6b72acf462326de (patch) | |
tree | 8fd9691ff49ba3912b9ea32e9a6435487aab2e5c /tools | |
parent | 8fdcc9545630a4ea87313c078e99db12da2485c0 (diff) |
pidl:NDR/Parser: add missing {start,end}_flags() to ParseElementPrint()
Pick up change from Samba:
commit 81bbfb010599b65308aca89cc50532372ca4cb00
Author: Stefan Metzmacher <metze@samba.org>
Date: Mon Jun 12 18:58:49 2017 +0200
pidl:NDR/Parser: add missing {start,end}_flags() to ParseElementPrint()
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>
Change-Id: Iaf4192083c49a15eaf722da1a3b55ad987bdbc82
Reviewed-on: https://code.wireshark.org/review/23699
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 7a73126701..6739b5f439 100644 --- a/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -848,8 +848,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; } @@ -944,6 +946,8 @@ sub ParseElementPrint($$$$$) $self->pidl("$ndr->depth--;"); } } + + $self->end_flags($e, $ndr); } ##################################################################### |