aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-07-16 18:20:32 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-07-16 18:20:32 +0000
commit3ce7b8c0d61e5d2fd7ff8ff53a00efd1e7ff0d33 (patch)
treec4f0557d5b5875e0b9637d857a9cdf3421c04da4 /tshark.c
parent7c93ab35b5a4fa431eb37a20b41d9734fc732dab (diff)
Make sure we call wtap_cleareof() before each read.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33555 f5534014-38df-0310-8fa8-9805f1628bb7
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 */