diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-07-16 18:20:32 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-07-16 18:20:32 +0000 |
commit | cfa9982492fe1f7b1e0dc2c0ec7ab36d4b02ee3a (patch) | |
tree | c4f0557d5b5875e0b9637d857a9cdf3421c04da4 /tshark.c | |
parent | b3f57106d4b367450342808521a56e653c91371f (diff) |
Make sure we call wtap_cleareof() before each read.
svn path=/trunk/; revision=33555
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 */ |