From: Steve Kay Date: Wed, 18 Jan 2017 02:49:55 +0000 (-0800) Subject: Fixes issue where statistics not reported when -G and -W options used X-Git-Tag: tcpdump-4.9.0-bp~115 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/bb6a08174a1cb1e6281f6bcf7126a7a94e211a47?hp=ad7df8bd34fa495cd9066ca138384b5d85b85523 Fixes issue where statistics not reported when -G and -W options used --- 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 */ }