From bb6a08174a1cb1e6281f6bcf7126a7a94e211a47 Mon Sep 17 00:00:00 2001 From: Steve Kay Date: Tue, 17 Jan 2017 18:49:55 -0800 Subject: [PATCH] Fixes issue where statistics not reported when -G and -W options used --- tcpdump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tcpdump.c b/tcpdump.c index 06c0ca13..03bf00f1 100644 --- 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 */ } -- 2.39.5