]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From Max Laier (via Giorgos Keramidas?): clear "infoprint" if
authorguy <guy>
Wed, 21 Nov 2007 20:31:55 +0000 (20:31 +0000)
committerguy <guy>
Wed, 21 Nov 2007 20:31:55 +0000 (20:31 +0000)
pcap_stats() fails, so we don't keep attempting to get statistics and
failing.

tcpdump.c

index 451865f1cd03649da15f085046afdbc5ca92387b..99cc7111fcc5a4e4d02b01c337fd721bc9cb838b 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -30,7 +30,7 @@ static const char copyright[] _U_ =
     "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000\n\
 The Regents of the University of California.  All rights reserved.\n";
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/tcpdump.c,v 1.271.2.1 2007-10-13 00:47:54 gianluca Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/tcpdump.c,v 1.271.2.2 2007-11-21 20:31:55 guy Exp $ (LBL)";
 #endif
 
 /*
@@ -1208,6 +1208,7 @@ info(register int verbose)
 
        if (pcap_stats(pd, &stat) < 0) {
                (void)fprintf(stderr, "pcap_stats: %s\n", pcap_geterr(pd));
+               infoprint = 0;
                return;
        }