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
This commit is contained in:
Evan Huus 2013-08-13 02:18:04 +00:00
parent 7292140b9c
commit f528d4ecbc
1 changed files with 3 additions and 1 deletions

4
file.c
View File

@ -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