X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_socket.c;h=1bf9d16afe03588c079af6aad0c9a1946f202369;hb=b23bf132838156d2fe5a18d50a2b5e068ae18ec3;hp=b2297af4198231dea0f069d116161fb6a2b04f93;hpb=127f2f99f3d43e0565782750f26f1d3980c72711;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index b2297af4..1bf9d16a 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -388,7 +388,7 @@ static void handle_meta_write(connection_t *c) { logger(DEBUG_CONNECTIONS, LOG_ERR, "Could not send %d bytes of data to %s (%s): %s", c->outbuf.len - c->outbuf.offset, c->name, c->hostname, sockstrerror(sockerrno)); } - terminate_connection(c, c->status.active); + terminate_connection(c, c->edge); return; } @@ -820,7 +820,7 @@ void try_outgoing_connections(void) { if(c->outgoing && c->outgoing->timeout == -1) { c->outgoing = NULL; logger(DEBUG_CONNECTIONS, LOG_INFO, "No more outgoing connection to %s", c->name); - terminate_connection(c, c->status.active); + terminate_connection(c, c->edge); } }