projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ebb34f
)
terminate_connection(): Avoid use-after-free and double-free for
author
Sven-Haegar Koch
<haegar@sdinet.de>
Thu, 19 Apr 2012 22:24:38 +0000
(
00:24
+0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 May 2012 14:16:59 +0000
(16:16 +0200)
already freed edge structure.
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
db5743a
..
2565be1
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-121,6
+121,7
@@
void terminate_connection(connection_t *c, bool report) {
send_del_edge(everyone, c->edge);
edge_del(c->edge);
+ c->edge = NULL;
/* Run MST and SSSP algorithms */