aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-08-13 02:18:04 +0000
committerEvan Huus <eapache@gmail.com>2013-08-13 02:18:04 +0000
commitf528d4ecbc5a6ff6052974bc49c19b4064cf7b9b (patch)
tree948d943be93af9f12d3b5aeff4abec96954d7e17 /file.c
parent7292140b9c28b07627bca68c628055d363c3c487 (diff)
Only rescan packets if we have packets to rescan. Fixes at least the surface
problem in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9033 The underlying scoping issues may not be fully resolved yet. svn path=/trunk/; revision=51327
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/file.c b/file.c
index fa98011455..095f3b2195 100644
--- a/file.c
+++ b/file.c
@@ -1731,7 +1731,9 @@ cf_reftime_packets(capture_file *cf)
void
cf_redissect_packets(capture_file *cf)
{
- rescan_packets(cf, "Reprocessing", "all packets", TRUE);
+ if (cf->state != FILE_CLOSED) {
+ rescan_packets(cf, "Reprocessing", "all packets", TRUE);
+ }
}
gboolean