From: Guus Sliepen Date: Sat, 7 Nov 2015 22:24:48 +0000 (+0000) Subject: Fix check for succesful opening of UDP ports. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=5fd6e63a29b332c1779353d22fc3917fc725eb25;p=meshlink Fix check for succesful opening of UDP ports. --- diff --git a/src/net_setup.c b/src/net_setup.c index a2c44141..8cfacc3a 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -293,7 +293,7 @@ static bool add_listen_address(meshlink_handle_t *mesh, char *address, bool bind int udp_fd = setup_vpn_in_socket(mesh, (sockaddr_t *) aip->ai_addr); - if(tcp_fd < 0) { + if(udp_fd < 0) { close(tcp_fd); continue; }