summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2021-10-06 23:01:14 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2021-10-06 23:01:14 +0100
commitefea28239689537e61e56c83de3b876900425b18 (patch)
treee15fdb67c92514be4a6cfafeb4a30c73bb58bb1e
parent33d6a01cd3d7a2d41e1e6aaa6a1aa792e2397635 (diff)
downloaddnsmasq-efea28239689537e61e56c83de3b876900425b18.tar.gz
Fix logic in add_update_server() to make optimisation actually optimise.
-rw-r--r--src/domain-match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/domain-match.c b/src/domain-match.c
index 7bf3d5a..6f59566 100644
--- a/src/domain-match.c
+++ b/src/domain-match.c
@@ -630,7 +630,7 @@ int add_update_server(int flags,
/* See if there is a suitable candidate, and unmark
only do this for forwarding servers, not
address or local, to avoid delays on large numbers. */
- if (flags & SERV_IS_LOCAL)
+ if (!(flags & SERV_IS_LOCAL))
for (serv = daemon->servers; serv; serv = serv->next)
if ((serv->flags & SERV_MARK) &&
hostname_isequal(alloc_domain, serv->domain))