aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-10-17 14:56:37 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-10-17 14:56:37 +0000
commite86ebd872d2126a5a68607134f3a4b8bdffde443 (patch)
treec871a3712b125b86cccd568b053fe29737d53069 /file.c
parentb9dbaf28c0f17c061facedcf11a07757b6e39804 (diff)
From Michael Mann: Add cf_callback_invoke to cf_open to tidy up the currently open file before opening a new one. Fixes bugs 5987 and 6457.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5987 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6457 svn path=/trunk/; revision=39445
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 27753d45a4..cad7f9fb40 100644
--- a/file.c
+++ b/file.c
@@ -289,6 +289,7 @@ cf_open(capture_file *cf, const char *fname, gboolean is_tempfile, int *err)
/* The open succeeded. Close whatever capture file we had open,
and fill in the information for this file. */
+ cf_callback_invoke(cf_cb_file_closing, cf);
cf_reset_state(cf);
/* Cleanup all data structures used for dissection. */