Fix check for local domains in CNAME case. Fixes d56a604a96

This commit is contained in:
Simon Kelley
2013-10-28 13:14:03 +00:00
parent 50d7f721ee
commit 7b174c250d
2 changed files with 3 additions and 3 deletions

View File

@@ -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);