bugfix: reset the packet counter to zero, if switching to the next "multiple file...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Oct 2005 00:28:36 +0000 (00:28 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Oct 2005 00:28:36 +0000 (00:28 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16135 f5534014-38df-0310-8fa8-9805f1628bb7

capture_loop.c

index ade13389c5e953817d5d7ce46d59f2fa5e33fcb1..c6dfd67fe6848f3c9761c73bec05bfe4e68c7ba8 100644 (file)
@@ -1337,6 +1337,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
             }
             wtap_dump_flush(ld.wtap_pdh);
             sync_pipe_filename_to_parent(capture_opts->save_file);
+                       ld.packets_sync_pipe = 0;
           } else {
             /* File switch failed: stop here */
             ld.go = FALSE;
@@ -1412,6 +1413,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
               cnd_reset(cnd_autostop_size);
             wtap_dump_flush(ld.wtap_pdh);
             sync_pipe_filename_to_parent(capture_opts->save_file);
+                       ld.packets_sync_pipe = 0;
           } else {
             /* File switch failed: stop here */
                ld.go = FALSE;