From 5fd6e63a29b332c1779353d22fc3917fc725eb25 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 7 Nov 2015 22:24:48 +0000 Subject: [PATCH] Fix check for succesful opening of UDP ports. --- src/net_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5