projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix error handling when setting up the UDP socket.
[oweals/tinc.git]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index 4e1cacaf2e86a0a7e7183ef3a48962b369d65ff8..b0a0c953a9acc4c2510efcfcc58fd846cac4903d 100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-676,7
+676,7
@@
static bool add_listen_address(char *address, bool bindto) {
int udp_fd = setup_vpn_in_socket((sockaddr_t *) aip->ai_addr);
- if(
tc
p_fd < 0) {
+ if(
ud
p_fd < 0) {
close(tcp_fd);
continue;
}