summaryrefslogtreecommitdiff
path: root/src/domain-match.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/domain-match.c')
-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 6f59566..b457f5b 100644
--- a/src/domain-match.c
+++ b/src/domain-match.c
@@ -494,7 +494,7 @@ static int order(char *qdomain, size_t qlen, struct server *serv)
if (qlen > dlen)
return -1;
- return strcmp(qdomain, serv->domain);
+ return hostname_order(qdomain, serv->domain);
}
static int order_servers(struct server *s1, struct server *s2)