X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_socket.c;h=7ef819319b649063e6bf516bb705219bdcd82a14;hb=bc0a24ec810cb911610ae7aafa245e47d1268cd2;hp=ec774f6a73e7bc6b5e04ecd4aec91d9d835025d8;hpb=fb0cfccf7dc2240b576011edcf74fd5b058916cb;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index ec774f6a..7ef81931 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -231,7 +231,7 @@ int setup_vpn_in_socket(const sockaddr_t *sa) { } static void retry_outgoing_handler(int fd, short events, void *data) { - do_outgoing_connection(data); + setup_outgoing_connection(data); } void retry_outgoing(outgoing_t *outgoing) { @@ -274,8 +274,9 @@ begin: if(!c->outgoing->cfg) { ifdebug(CONNECTIONS) logger(LOG_ERR, _("Could not set up a meta connection to %s"), c->name); - c->status.remove = true; retry_outgoing(c->outgoing); + c->outgoing = NULL; + connection_del(c); return; }