diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-16 18:20:32 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-16 18:20:32 +0000 |
commit | 3ce7b8c0d61e5d2fd7ff8ff53a00efd1e7ff0d33 (patch) | |
tree | c4f0557d5b5875e0b9637d857a9cdf3421c04da4 /tshark.c | |
parent | 7c93ab35b5a4fa431eb37a20b41d9734fc732dab (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |