summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/eventdns.c2
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;
}