diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2023-03-20 22:30:11 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2023-03-20 22:30:11 +0000 |
commit | 3fb10cd0d8217b42071ab575c2edaae2554b1780 (patch) | |
tree | 1f850ab4ac7ad309bd9c5f7a839838ce2d09fc9b /src/domain-match.c | |
parent | 0427e371160882a24825df6f4f963961257df952 (diff) | |
parent | ff28a485cf8b592a6c21b39bbb8e42f5bc390685 (diff) | |
download | dnsmasq-3fb10cd0d8217b42071ab575c2edaae2554b1780.tar.gz |
Merge branch 'master' into all-rr-type
Diffstat (limited to 'src/domain-match.c')
-rw-r--r-- | src/domain-match.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/domain-match.c b/src/domain-match.c index fe8e25a..9cc51e6 100644 --- a/src/domain-match.c +++ b/src/domain-match.c @@ -253,9 +253,10 @@ int lookup_domain(char *domain, int flags, int *lowout, int *highout) if (highout) *highout = nhigh; - if (nlow == nhigh) + /* qlen == -1 when we failed to match even an empty query, if there are no default servers. */ + if (nlow == nhigh || qlen == -1) return 0; - + return 1; } |