Trivial format fix

This commit is contained in:
Simon Kelley
2014-01-17 14:40:46 +00:00
parent e0c0ad3b5e
commit 6c0cb858c1

View File

@@ -513,7 +513,8 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server
char *matchstart = daemon->namebuff + namelen - domainlen; char *matchstart = daemon->namebuff + namelen - domainlen;
if (namelen >= domainlen && hostname_isequal(matchstart, ipset_pos->domain) && if (namelen >= domainlen && hostname_isequal(matchstart, ipset_pos->domain) &&
(domainlen == 0 || namelen == domainlen || *(matchstart - 1) == '.' ) && (domainlen == 0 || namelen == domainlen || *(matchstart - 1) == '.' ) &&
domainlen >= matchlen) { domainlen >= matchlen)
{
matchlen = domainlen; matchlen = domainlen;
sets = ipset_pos->sets; sets = ipset_pos->sets;
} }