diff options
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index d923d26cc..f6dbe0301 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -2118,6 +2118,7 @@ _evdns_nameserver_add_impl(unsigned long int address, int port) { #else fcntl(ns->socket, F_SETFL, O_NONBLOCK); #endif + memset(&sin, 0, sizeof(sin)); sin.sin_addr.s_addr = address; sin.sin_port = htons(port); sin.sin_family = AF_INET; |