aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tshark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 1e1314f277..a0c8f4f71e 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2161,6 +2161,7 @@ capture_input_new_packets(capture_options *capture_opts, int to_read)
tap_flags = union_of_tap_listener_flags();
if(do_dissection) {
+ wtap_cleareof(cf->wth);
while (to_read-- && cf->wth) {
ret = wtap_read(cf->wth, &err, &err_info, &data_offset);
if(ret == FALSE) {