projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable AutoConnect in the ns-ping test.
[tinc]
/
src
/
control.c
diff --git
a/src/control.c
b/src/control.c
index
beda6c4
..
71258b5
100644
(file)
--- a/
src/control.c
+++ b/
src/control.c
@@
-159,12
+159,12
@@
bool init_control(void) {
// Get the address and port of the first listening socket
char *localhost = NULL;
// Get the address and port of the first listening socket
char *localhost = NULL;
- sockaddr_t sa;
+ sockaddr_t sa
= {0}
;
socklen_t len = sizeof(sa);
// Make sure we have a valid address, and map 0.0.0.0 and :: to 127.0.0.1 and ::1.
socklen_t len = sizeof(sa);
// Make sure we have a valid address, and map 0.0.0.0 and :: to 127.0.0.1 and ::1.
- if(getsockname(listen_socket[0].tcp.fd,
(struct sockaddr *)&
sa, &len)) {
+ if(getsockname(listen_socket[0].tcp.fd,
&sa.
sa, &len)) {
xasprintf(&localhost, "127.0.0.1 port %s", myport);
} else {
if(sa.sa.sa_family == AF_INET) {
xasprintf(&localhost, "127.0.0.1 port %s", myport);
} else {
if(sa.sa.sa_family == AF_INET) {