Wireshark-commits: [Wireshark-commits] master 03a240e: Don't set the length of the protocol list su

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 18 May 2019 19:49:10 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=03a240ecad530846e452c25408281a45729aff22
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

03a240e by Guy Harris (guy@xxxxxxxxxxxx):

    Don't set the length of the protocol list subtree until it's finished.
    
    That way, if it's cut short by a snapshot length (or its length is
    otherwise too large),  we don't throw an exception before dissecting the
    items that are present.
    
    Change-Id: Id2521efdcf97f63f6826d62b4361722c7eef78c9
    Reviewed-on: https://code.wireshark.org/review/33253
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  74a4067   lustre: fix typo
     add  03a240e   Don't set the length of the protocol list subtree until it's finished.


Summary of changes:
 epan/dissectors/packet-smb.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)