mirror of
https://github.com/BlackLight/Snort_AIPreproc.git
synced 2024-11-14 04:37:16 +01:00
(Yes, I will make it sooner or later)
This commit is contained in:
parent
a41dc3b0f1
commit
d5869c7810
1 changed files with 2 additions and 1 deletions
3
neural.c
3
neural.c
|
@ -216,6 +216,7 @@ __AI_som_train ()
|
|||
double **inputs = NULL;
|
||||
|
||||
char query[1024] = { 0 };
|
||||
|
||||
size_t i = 0,
|
||||
num_rows = 0;
|
||||
|
||||
|
@ -276,7 +277,7 @@ __AI_som_train ()
|
|||
{
|
||||
row = (DB_row) DB_fetch_row ( res );
|
||||
|
||||
tuples[i].gid = row[0] ? strtoul ( row[1], NULL, 10 ) : 0;
|
||||
tuples[i].gid = row[0] ? strtoul ( row[0], NULL, 10 ) : 0;
|
||||
tuples[i].sid = row[1] ? strtoul ( row[1], NULL, 10 ) : 0;
|
||||
tuples[i].rev = row[2] ? strtoul ( row[2], NULL, 10 ) : 0;
|
||||
tuples[i].timestamp = row[3] ? (time_t) strtol ( row[3], NULL, 10 ) : (time_t) 0;
|
||||
|
|
Loading…
Reference in a new issue