[Snort-devel] Minor error in spo_database.c

Dirk Geschke Dirk_Geschke at ...802...
Wed Oct 16 12:32:04 EDT 2002


Hi all,

I think there is a minor error in the Database() Routine where a new
rule gets added to the database. In the actual file it is the line 964:

964   tmp2_len += snprintf(tmp2, MAX_QUERY_LENGTH-tmp2_len, "'%s'", msg);

Here instead of 'msg' there should be something like sig_name, which is:

sig_name = snort_escape_string(msg, data);

(Of course, if you use sig_name here then you should move the line:

903 free(sig_name); 

to some later point then line 964...)

Best regards

Dirk

+------------------------------------------------------------+
| Dr. Dirk Geschke            | E-mail: geschke at ...802...     |
| Gesellschaft fuer Netzwerk  | Tel.  : +49-(0)-89-991950-31 |
| und Unix Administration mbH | Fax   : +49-(0)-89-991950-99 |
| 85551 Kirchheim / Germany   | Raeter Stra/3e 26            |
+------------------------------------------------------------+




More information about the Snort-devel mailing list