Commit 6c0cb858 authored by Simon Kelley's avatar Simon Kelley

Trivial format fix

parent e0c0ad3b
...@@ -513,10 +513,11 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server ...@@ -513,10 +513,11 @@ 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; {
sets = ipset_pos->sets; matchlen = domainlen;
} sets = ipset_pos->sets;
}
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment