Wireshark-commits: [Wireshark-commits] master 8604ed2: Consistently use tvb_reported_length_remaini

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 9 Jan 2017 23:14:36 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8604ed2ef8dabce9abc384b5583ec573348bc920
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

8604ed2 by Guy Harris (guy@xxxxxxxxxxxx):

    Consistently use tvb_reported_length_remaining().
    
    That's the amount of data left in the packet; perhaps not all of it was
    *captured*, and using tvb_reported_length_remaining() will throw an
    exception, but that's what *should* happen ("packet cut short"
    notification and all).
    
    Use tvb_new_subset_remaining() to get a tvbuff with everything after a
    certain point in the packet.
    
    Change-Id: I2512e58e23600f7e7bbce0126732b05997692a65
    Reviewed-on: https://code.wireshark.org/review/19596
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  2b482cd   Use tvb_new_subset_length(); no need to do its work ourselves.
    adds  8604ed2   Consistently use tvb_reported_length_remaining().


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