diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-10 22:57:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-10 22:57:41 +0000 |
commit | d8027aa6898116436d591958407bf85b652c1253 (patch) | |
tree | 8df5b62aac3e63c3880e96e7b9d3b025fe0e3a8f /src/or/eventdns.c | |
parent | 9854ebadde4c5f231efbfc12751b0bf529fe1ce2 (diff) | |
download | tor-d8027aa6898116436d591958407bf85b652c1253.tar.gz tor-d8027aa6898116436d591958407bf85b652c1253.zip |
Fix a logic error that would automatically reject all but the first configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for part of 813/868. Spotted by coderman
svn:r17569
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 88ca1bbe91..cd5629bd1a 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -2224,7 +2224,7 @@ _evdns_nameserver_add_impl(const struct sockaddr *address, int err = 0; if (server) { do { - if (!sockaddr_eq(address, (struct sockaddr *)&server->address, 1)) { + if (sockaddr_eq(address, (struct sockaddr *)&server->address, 1)) { log(EVDNS_LOG_DEBUG, "Duplicate nameserver."); return 3; } |