[Snort-devel] Error in parsing config daemon

Bill McCarty bmccarty at ...1217...
Tue Jun 25 18:01:03 EDT 2002


Hi all,

I have a small problem report and fix for Snort 1.8.6. I don't generally 
keep up with the list. So, if this problem has been covered recently, 
please overlook this redudant message.

When the "config daemon" directive is used, Snort terminates with the error 
"Unknown config." The problem is apparently due to a small coding error in 
parser.c. I believe that the lines

    329     else if(!strcasecmp(config, "daemon"))
    330     {
    331         DebugMessage(DEBUG_INIT, "Daemon mode flag set\n");
    332         pv.daemon_flag = 1;
    333         pv.quiet_flag = 1;
    334
    335     }

should read

    329     else if(!strcasecmp(config, "daemon"))
    330     {
    331         DebugMessage(DEBUG_INIT, "Daemon mode flag set\n");
    332         pv.daemon_flag = 1;
    333         pv.quiet_flag = 1;
+   334         return;
    335     }

Cheers,

---------------------------------------------------
Bill McCarty




More information about the Snort-devel mailing list