aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-05-27 23:55:04 +0000
committerGerald Combs <gerald@wireshark.org>2010-05-27 23:55:04 +0000
commit69d739246716fd744aab79ce6d65919bc6393df9 (patch)
tree6a241efcfa63bd67cec879e882876c93068b7e6f /capture.c
parentece0ada557432588b8dbe66c2c877e61fef9a78e (diff)
Add cf_fake_continue_tail() which is called when real-time capture
updates are off and which sets the capture file state to a value that won't cause an assertion when the user stops capturing. Fixes bug 4035. svn path=/trunk/; revision=33005
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/capture.c b/capture.c
index 5e808f95eb..2a7a261273 100644
--- a/capture.c
+++ b/capture.c
@@ -399,6 +399,7 @@ capture_input_new_packets(capture_options *capture_opts, int to_read)
/* increase the capture file packet counter by the number of incoming packets */
cf_set_packet_count(capture_opts->cf,
cf_get_packet_count(capture_opts->cf) + to_read);
+ cf_fake_continue_tail(capture_opts->cf);
capture_callback_invoke(capture_cb_capture_fixed_continue, capture_opts);
}