From: Sven-Haegar Koch Date: Sun, 22 Apr 2012 00:55:06 +0000 (+0200) Subject: terminate_connection(): delete non-outgoing (aka incoming) connections. X-Git-Tag: release-1.1pre3~124 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=c78bb143030162f0c820f08c87808e157c014a07;p=tinc terminate_connection(): delete non-outgoing (aka incoming) connections. --- diff --git a/src/net.c b/src/net.c index 58db16e2..295546df 100644 --- a/src/net.c +++ b/src/net.c @@ -145,8 +145,10 @@ void terminate_connection(connection_t *c, bool report) { /* Check if this was our outgoing connection */ if(c->outgoing) { - do_outgoing_connection(c); - } + do_outgoing_connection(c); + } else { + connection_del(c); + } } /*