]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
use macros for VAT and WB port numbers
[tcpdump] / tcpdump.c
index 66d81bbf4f607bde784d8a770d09fea94d723954..68cbc719c668595f19d358491667cda98d465ccb 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1545,6 +1545,14 @@ main(int argc, char **argv)
                        }
                        (void)fflush(stdout);
                }
+                if (status == -2) {
+                       /*
+                        * We got interrupted. If we are reading multiple
+                        * files (via -V) set these so that we stop.
+                        */
+                       VFileName = NULL;
+                       ret = NULL;
+               }
                if (status == -1) {
                        /*
                         * Error.  Report it.