projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2213eca
)
Don't call terminate_connection(myself->connection).
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 17 Apr 2016 14:23:31 +0000
(16:23 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 17 Apr 2016 14:25:13 +0000
(16:25 +0200)
It doesn't do anything except give a confusing error message that we are
closing the connection to ourself. Replace it with connection_del().
This also fixes a double free.
src/net_setup.c
patch
|
blob
|
history
diff --git
a/src/net_setup.c
b/src/net_setup.c
index cbd3954cbfb675fb85b672006185a3b6fb917dda..30e6f848a68c4ea4828fc02828267fade412386d 100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-1154,8
+1154,7
@@
void close_network_connections(void) {
if(myself && myself->connection) {
subnet_update(myself, NULL, false);
- terminate_connection(myself->connection, false);
- free_connection(myself->connection);
+ connection_del(myself->connection);
}
for(int i = 0; i < listen_sockets; i++) {