X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_socket.c;h=31bc608f1d43fd56f346d9d2736de43c3b79e951;hb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;hp=29f14c0eaa244e5122ef2679f4079486f3b89d16;hpb=bab00223b01190f844e5af5348efe508c2753833;p=meshlink diff --git a/src/net_socket.c b/src/net_socket.c index 29f14c0e..31bc608f 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -238,6 +238,8 @@ int setup_vpn_in_socket(meshlink_handle_t *mesh, const sockaddr_t *sa) { } /* int setup_vpn_in_socket */ static void retry_outgoing_handler(event_loop_t *loop, void *data) { + assert(data); + meshlink_handle_t *mesh = loop->data; outgoing_t *outgoing = data; setup_outgoing_connection(mesh, outgoing); @@ -491,7 +493,7 @@ static bool get_next_outgoing_address(meshlink_handle_t *mesh, outgoing_t *outgo return false; } -bool do_outgoing_connection(meshlink_handle_t *mesh, outgoing_t *outgoing) { +void do_outgoing_connection(meshlink_handle_t *mesh, outgoing_t *outgoing) { struct addrinfo *proxyai = NULL; int result; @@ -505,7 +507,7 @@ begin: retry_outgoing(mesh, outgoing); } - return false; + return; } connection_t *c = new_connection(); @@ -584,8 +586,6 @@ begin: connection_add(mesh, c); io_add(&mesh->loop, &c->io, handle_meta_io, c, c->socket, IO_READ | IO_WRITE); - - return true; } void setup_outgoing_connection(meshlink_handle_t *mesh, outgoing_t *outgoing) {