From 805a11345c452efcb17286a265ce192ff32beb07 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Fri, 13 Jan 2012 11:51:46 +0000 Subject: [PATCH] We don't need to check that a cache record is F_HOST in the duplicate address code, since we're now searching a temporary hash which holds only F_HOST records. --- src/cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cache.c b/src/cache.c index 3072233..77a4348 100644 --- a/src/cache.c +++ b/src/cache.c @@ -670,8 +670,7 @@ static void add_hosts_entry(struct crec *cache, struct all_addr *addr, int addrl j = (j*2 +((unsigned char *)addr)[i]) % hashsz; for (lookup = rhash[j]; lookup; lookup = lookup->next) - if ((lookup->flags & F_HOSTS) && - (lookup->flags & flags & (F_IPV4 | F_IPV6)) && + if ((lookup->flags & flags & (F_IPV4 | F_IPV6)) && memcmp(&lookup->addr.addr, addr, addrlen) == 0) { flags &= ~F_REVERSE;