X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet.c;h=295546df6068a5e63e2c4701d2d5c56d94f4a650;hb=291a59b5b732de084e392daea1433b1fdb9fbfd5;hp=58db16e29f1d26778a6a649adcea0af1f49b448f;hpb=7a6ca7a993e5907497d97fef09e375698dde182f;p=tinc 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); + } } /*