[Snort-devel] core dump FreeBSD 4.3

Cove Schneider cove at ...46...
Fri Jul 20 18:47:52 EDT 2001


Hi,

Apparently snort-1.8p1 was crashing on me due to an un-init'ed
variable passed to mysql_real_connect(). I have snort logging to
a mysql database, but since it's only over local domain sockets I
leave the "host=" part out. e.g.

output database: log, mysql, user=snort dbname=snort

Here's the patch, so far everything seems to be running fine now.

*** spo_database.c      Fri Jul 20 15:42:06 2001        
--- spo_database.c.orig Fri Jul 20 15:42:27 2001
***************
*** 275,281 ****
      data->facility = NULL;
      data->encoding = ENCODING_HEX;
      data->detail = DETAIL_FULL;
-     data->shared->host = "";
  
      facility = strtok(args, ", ");
      if(facility != NULL)
--- 275,280 ----


Regards,

Cove





More information about the Snort-devel mailing list