]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pidl:Wireshark Fix array of pointers NULL termination
authorJohn Thacker <johnthacker@gmail.com>
Tue, 25 Jun 2024 22:31:39 +0000 (18:31 -0400)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 3 Jul 2024 01:35:31 +0000 (01:35 +0000)
Picked from Wireshark's PIDL fork:

    commit c07fd447c362099b04eedb445e8fa469643403f7
    Author: Binh Trinh <beango@gmail.com>
    Date:   Fri Jun 17 21:46:11 2016 -0400

        DCE/RPC: fix array of pointers with NULL

        Change-Id: Ie89f8fd4ec744d427d41866206d5a6784c5b224f
        Reviewed-on: https://code.wireshark.org/review/16004
        Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Signed-off-by: John Thacker <johnthacker@gmail.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index d4cbdb129d47ad6826cd424f5264674b6a61530d..65ebcac555dba7d6df4f7270018fe03477dbc0b7 100644 (file)
@@ -230,6 +230,7 @@ sub Bitmap($$$$)
                        $total_ev += hex($ev);
                        $self->pidl_code("&$hf_bitname,");
                }
+               $self->pidl_code("NULL");
                $self->deindent;
                $self->pidl_code("};");
        }