]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more S_SUCCESS and S_ERR_HOST_PROGRAM in main()
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 4 Feb 2022 10:13:25 +0000 (11:13 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 4 Feb 2022 10:15:57 +0000 (11:15 +0100)
tcpdump.c

index 73e097196d85ef1c961e5581de28aa72dddbcd50..e028d2e7ebdfa8fcd751efe1d23ddac5199d82d7 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -2727,7 +2727,7 @@ DIAG_ON_ASSIGN_ENUM
 
        free(cmdbuf);
        pcap_freecode(&fcode);
-       exit_tcpdump(status == -1 ? 1 : 0);
+       exit_tcpdump(status == -1 ? S_ERR_HOST_PROGRAM : S_SUCCESS);
 }
 
 /*