[Snort-devel] minor format error in snort.c

Phil Wood cpw at ...86...
Fri Oct 18 13:07:02 EDT 2002


snort.c

VERSION=2.0.0beta
BUILD=10

If pcap_compile fails, the message is less than helpful, and there is one more
comma than necessary.

-- 
Phil Wood, cpw at ...86...
-------------- next part --------------
--- snort/src/snort.c	Thu Oct 10 15:51:23 2002
+++ snort+/src/snort.c	Fri Oct 18 20:03:56 2002
@@ -1843,8 +1843,8 @@
     /* compile BPF filter spec info fcode FSM */
     if(pcap_compile(pds[num], &fcode, pv.pcap_cmd, 1, netmask) < 0)
     {
-        FatalError("OpenPcap() FSM compilation failed: \n\t%s\n",
-                   "PCAP command: %s\n", pcap_geterr(pds[num]), pv.pcap_cmd);
+        FatalError("OpenPcap() FSM compilation failed: \n\t'%s' compiling "
+                   "pcap filter: '%s'\n", pcap_geterr(pds[num]), pv.pcap_cmd);
     }
     /* set the pcap filter */
     if(pcap_setfilter(pds[num], &fcode) < 0)


More information about the Snort-devel mailing list