X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=0496a864e4dd4c028a07ab7bf4f52c353471c02e;hp=6979083f1948690d5f468b2ce45d2c43be5d82f8;hb=80e15d8b96e5313b33c91003b1f75d7f6db9924e;hpb=28a1501b9a8b4c730f7f965d6b2e8fc50feba261 diff --git a/src/net.c b/src/net.c index 6979083f..0496a864 100644 --- a/src/net.c +++ b/src/net.c @@ -204,18 +204,14 @@ void terminate_connection(connection_t *c, bool report) { } } + free_connection_partially(c); + /* Check if this was our outgoing connection */ if(c->outgoing) { - retry_outgoing(c->outgoing); - c->outgoing = NULL; + c->status.remove = false; + do_outgoing_connection(c); } - - free(c->outbuf); - c->outbuf = NULL; - c->outbuflen = 0; - c->outbufsize = 0; - c->outbufstart = 0; } /*