diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-07-26 10:34:07 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-07-26 10:34:07 +0000 |
commit | 5fbc5d6f581c99de07dd4e09b166f2b745173a35 (patch) | |
tree | 07d43495da74cf1d799a0ebb9ebd17839cace836 /file.c | |
parent | be2a84c23149476106b66bea8a6fc0a0687e5ba1 (diff) |
From Kovarththanan Rajaratnam:
Only clear packet list store if we need to redissect.
svn path=/trunk/; revision=29195
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -362,6 +362,7 @@ cf_reset_state(capture_file *cf) /* Clear the packet list. */ #ifdef NEW_PACKET_LIST new_packet_list_freeze(); + new_packet_list_clear(); new_packet_list_thaw(); #else packet_list_freeze(); @@ -1635,6 +1636,12 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, /* Initialize all data structures used for dissection. */ init_dissection(); + +#ifdef NEW_PACKET_LIST + /* We need to redissect the packets so we have to discard our old + * packet list store. */ + new_packet_list_clear(); +#endif } /* Freeze the packet list while we redo it, so we don't get any |