aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-07-16 18:20:32 +0000
committerGerald Combs <gerald@wireshark.org>2010-07-16 18:20:32 +0000
commitcfa9982492fe1f7b1e0dc2c0ec7ab36d4b02ee3a (patch)
treec4f0557d5b5875e0b9637d857a9cdf3421c04da4 /tshark.c
parentb3f57106d4b367450342808521a56e653c91371f (diff)
Make sure we call wtap_cleareof() before each read.
svn path=/trunk/; revision=33555
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index a4d0ad1ef1..5c63d2c7ef 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2159,8 +2159,8 @@ 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) {
+ wtap_cleareof(cf->wth);
ret = wtap_read(cf->wth, &err, &err_info, &data_offset);
if(ret == FALSE) {
/* read from file failed, tell the capture child to stop */