summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2013-10-28 13:14:03 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2013-10-28 13:14:03 +0000
commit7b174c250df2bc97b503fd03b9e473998676b1a6 (patch)
treeaa4bcc55eb110d00a9a3bb477c7547cc7bfde231 /src/cache.c
parent50d7f721ee2038be5c1baebeb4bf6a5828b58164 (diff)
downloaddnsmasq-7b174c250df2bc97b503fd03b9e473998676b1a6.tar.gz
Fix check for local domains in CNAME case. Fixes d56a604a9600c08d4a863527d549713c07f0186dv2.68test1
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index d99aba6..6c5f601 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -330,7 +330,7 @@ static int cache_scan_free(char *name, struct all_addr *addr, time_t now, unsign
((flags & crecp->flags & F_TYPE) || ((crecp->flags | flags) & F_CNAME)) &&
hostname_isequal(cache_get_name(crecp), name))
{
- if (crecp->flags & (F_HOSTS | F_DHCP))
+ if (crecp->flags & (F_HOSTS | F_DHCP | F_CONFIG))
return 0;
*up = crecp->hash_next;
cache_unlink(crecp);