From 24aae484c93b09c7fc735e53874f02a22e4b5b43 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 15 Jan 2008 05:57:19 +0000 Subject: r17624@catbus: nickm | 2008-01-15 00:42:01 -0500 Fixes to more anonymously-reported typos and logic errors. svn:r13136 --- src/or/eventdns.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/eventdns.c') diff --git a/src/or/eventdns.c b/src/or/eventdns.c index d923d26cc1..f6dbe03018 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; -- cgit v1.2.3-54-g00ecf