summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index a66edf4332..ff658b7069 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1914,7 +1914,7 @@ get_interface_address(int severity, uint32_t *addr)
tor_assert(addr);
*addr = 0;
- sock = socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP);
+ sock = tor_open_socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP);
if (sock < 0) {
int e = tor_socket_errno(-1);
log_fn(severity, LD_NET, "unable to create socket: %s",