frame_data: Reset subnum if visited is resetted
authorRoland Knall <roland.knall@br-automation.com>
Wed, 28 Oct 2015 05:59:35 +0000 (06:59 +0100)
committerPascal Quantin <pascal.quantin@gmail.com>
Wed, 28 Oct 2015 13:54:58 +0000 (13:54 +0000)
commitd1f0e7273401e1470b8ed919961e6989eab1f986
treeff63eb57940a8fae242b9a754cf999275adfa482
parent9b3bda923212261e95c87042f9ec2b0728aa0e6f
frame_data: Reset subnum if visited is resetted

 subnum get's resetted when the file is reloaded. But subnum
 does not get resetted, if for instance a preference has been
 set directly via (Protocol Name)->Protocol Preferences-> ...
 in the Protocol list. But flags.visited get's resetted.

 This leads to the scenario, where reloading a trace starts subnum
 with 0 and applying a preference starts subnum with the highest
 value it had before.

 This patch ensures, that all methods for reloading the frame
 lead to the same init value

Change-Id: I167d1e03f7e2e6c60492f501ee5cb9555ac12ac9
Reviewed-on: https://code.wireshark.org/review/11341
Reviewed-by: Roland Knall <rknall@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
epan/frame_data.c