Wireshark-commits: [Wireshark-commits] master de5580a: BGP: Fix length in decode_prefix4()

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 17 Nov 2016 06:50:25 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=de5580a8ff5f8558386c51c7d56f09970d553fe3
Submitter: Alexis La Goutte (alexis.lagoutte@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

de5580a by Uli Heilmeier (uh@xxxxxxxxxxxx):

    BGP: Fix length in decode_prefix4()
    
    When decode_prefix4() gets called with more prefixes the length of
    proto_tree_add_subtree_format() should not be the total length.
    
    As the "Withdrawn route" part was the only one where decode_prefix4() has
    been called with a tlen not equal 0 we can eliminate the tlen parameter.
    
    Bug: 13146
    Change-Id: I708dec2cecbed6054b60190104b82c72d54e8037
    Reviewed-on: https://code.wireshark.org/review/18852
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    Petri-Dish: Michael Mann <mmann78@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    

Actions performed:

    from  9c514d8   TCP: Add MD5 signature option dissection
    adds  de5580a   BGP: Fix length in decode_prefix4()


Summary of changes:
 epan/dissectors/packet-bgp.c |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)