]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fixes issue where statistics not reported when -G and -W options used
authorSteve Kay <[email protected]>
Wed, 18 Jan 2017 02:49:55 +0000 (18:49 -0800)
committerGuy Harris <[email protected]>
Wed, 18 Jan 2017 02:49:55 +0000 (18:49 -0800)
tcpdump.c

index 06c0ca13bca3914bb89507b1d2ed8e742bc52011..03bf00f1a9d79a75e409f7f07603f6a2af88e327 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -2322,6 +2322,7 @@ dump_packet_and_trunc(u_char *user, const struct pcap_pkthdr *h, const u_char *s
                        if (Cflag == 0 && Wflag > 0 && Gflag_count >= Wflag) {
                                (void)fprintf(stderr, "Maximum file limit reached: %d\n",
                                    Wflag);
+                               info(1);
                                exit_tcpdump(0);
                                /* NOTREACHED */
                        }