diff options
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 390889d4c2..e762b1853e 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1359,7 +1359,7 @@ get_interface_address(uint32_t *addr) } /* XXXX Can this be right on IPv6 clients? */ - if (getsockname(sock, &my_addr, &my_addr_len)) { + if (getsockname(sock, (struct sockaddr*)&my_addr, &my_addr_len)) { int e = tor_socket_errno(sock); log_fn(LOG_WARN, "getsockname() failed: %s", tor_socket_strerror(e)); goto err; |