1 diff -urN dnsmasq.old/src/forward.c dnsmasq.dev/src/forward.c
2 --- dnsmasq.old/src/forward.c 2006-01-16 20:34:04.000000000 +0100
3 +++ dnsmasq.dev/src/forward.c 2006-02-05 04:41:37.148190000 +0100
5 if (namelen >= domainlen &&
6 hostname_isequal(matchstart, serv->domain) &&
7 domainlen >= matchlen &&
8 - (namelen == domainlen || *(serv->domain) == '.' || *(matchstart-1) == '.' ))
9 + (namelen == domainlen || *(serv->domain) == '.' || *(matchstart-1) == '.' || domainlen == 0))
11 unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6;
12 *type = SERV_HAS_DOMAIN;