Submitter: Guy Harris (g...@alum.mit.edu)
Changed: branch: master
Repository: wireshark


70a1d1c by Guy Harris (g...@alum.mit.edu):

    Get rid of get_opaque_length() and unneeded length arguments.
    In most calls to get_opaque_length(), the length is a constant, so just
    directly fetch the length value.  In the calls in dissect_nodeid_list()
    and dissect_kindid_list(), the length is an argument to the routine
    making the call, and *those* arguments are, for each of the routines,
    the same constant for all calls to the routine in question, so just
    directly fetch the length value in those routines.
    This lets us avoid checks for a valid length-of-length, so we don't need
    to have the length-of-length be a signed value with -1 meaning
    "invalid".  That's good, because nothing was actually *checking* for an
    invalid length-of-length.
    Change-Id: I58264c133977266f3214d6e4ca361f71ecc0b69a
    Reviewed-on: https://code.wireshark.org/review/26842
    Reviewed-by: Guy Harris <g...@alum.mit.edu>

Actions performed:

    from  bbd0142   Nb is an unsigned value; treat it as such.
    adds  70a1d1c   Get rid of get_opaque_length() and unneeded length 

Summary of changes:
 epan/dissectors/packet-reload.c | 98 +++++++++++++++--------------------------
 1 file changed, 36 insertions(+), 62 deletions(-)
Sent via:    Wireshark-commits mailing list <wireshark-commits@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-commits
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-commits

Reply via email to