Commit 10dfdcc3 authored by 's avatar
Browse files

Fixed double free.



git-svn-id: file:///home/svn/mapi/trunk@564 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 55998d8c
......@@ -82,10 +82,14 @@ free_tcp(struct tcp_stream * a_tcp, nids_instance_t *ni)
a_tcp->prev_node->next_node = a_tcp->next_node;
else
ni->tcp_stream_table[hash_index] = a_tcp->next_node;
if (a_tcp->client.data)
if (a_tcp->client.data) {
free(a_tcp->client.data);
if (a_tcp->server.data)
a_tcp->client.data = NULL;
}
if (a_tcp->server.data) {
free(a_tcp->server.data);
a_tcp->server.data = NULL;
}
if (a_tcp->next_time)
a_tcp->next_time->prev_time = a_tcp->prev_time;
if (a_tcp->prev_time)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment