Skip to content

Commit acf1af9

Browse files
authored
Merge pull request #33 from jason207/val_fix
Fix valgrind uninitialised variable error
2 parents d0c12bb + 2c7ef28 commit acf1af9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ginetflow.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ GInetFlow *g_inet_flow_get_full(GInetFlowTable * table,
880880
}
881881

882882
packet.tuple = tuple;
883+
packet.hash = 0;
883884

884885
flow = (GInetFlow *) g_hash_table_lookup(table->table, &packet);
885886
if (flow) {
@@ -1055,5 +1056,6 @@ GInetFlow *g_inet_flow_lookup(GInetFlowTable * table, GInetTuple * tuple)
10551056
GInetFlow packet;
10561057

10571058
packet.tuple = *tuple;
1059+
packet.hash = 0;
10581060
return (GInetFlow *) g_hash_table_lookup(table->table, &packet);
10591061
}

0 commit comments

Comments
 (0)