projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1c2946
)
Fix error handling when setting up the UDP socket.
author
Etienne Dechamps
<etienne@edechamps.fr>
Thu, 14 Jul 2016 18:15:35 +0000
(19:15 +0100)
committer
Etienne Dechamps
<etienne@edechamps.fr>
Thu, 14 Jul 2016 18:15:35 +0000
(19:15 +0100)
Due to this typo, if tinc managed to set up the TCP socket but not the
UDP socket, it would continue anyway.
The regression was introduced in
6bc5d626a8726fc23365ee705761a3c666a08ad4
.
src/net_setup.c
patch
|
blob
|
history
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
4e1caca
..
b0a0c95
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;
}