summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-01-15 05:57:19 +0000
committerNick Mathewson <nickm@torproject.org>2008-01-15 05:57:19 +0000
commit24aae484c93b09c7fc735e53874f02a22e4b5b43 (patch)
tree52b359e727d2a0c6325fd21ef881b20818f32baa /src/or/eventdns.c
parenta984011814b3de3c4a300c364893cd6c6cc8ec05 (diff)
downloadtor-24aae484c93b09c7fc735e53874f02a22e4b5b43.tar.gz
tor-24aae484c93b09c7fc735e53874f02a22e4b5b43.zip
r17624@catbus: nickm | 2008-01-15 00:42:01 -0500
Fixes to more anonymously-reported typos and logic errors. svn:r13136
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c1
1 files changed, 1 insertions, 0 deletions
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;