Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
10dfdcc3
Commit
10dfdcc3
authored
May 29, 2006
by
Browse files
Fixed double free.
git-svn-id:
file:///home/svn/mapi/trunk@564
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
55998d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
stdlib/libnids/tcp.c
View file @
10dfdcc3
...
@@ -82,10 +82,14 @@ free_tcp(struct tcp_stream * a_tcp, nids_instance_t *ni)
...
@@ -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
;
a_tcp
->
prev_node
->
next_node
=
a_tcp
->
next_node
;
else
else
ni
->
tcp_stream_table
[
hash_index
]
=
a_tcp
->
next_node
;
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
);
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
);
free
(
a_tcp
->
server
.
data
);
a_tcp
->
server
.
data
=
NULL
;
}
if
(
a_tcp
->
next_time
)
if
(
a_tcp
->
next_time
)
a_tcp
->
next_time
->
prev_time
=
a_tcp
->
prev_time
;
a_tcp
->
next_time
->
prev_time
=
a_tcp
->
prev_time
;
if
(
a_tcp
->
prev_time
)
if
(
a_tcp
->
prev_time
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment