From ed75294b82f7cecf21a79687dc877c10db2b2dd2 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 5 Feb 2006 03:59:55 +0000 Subject: fix static domain wildcards in dnsmasq (broken by upgrade to 2.26) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3135 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../package/dnsmasq/patches/102-domain_wildcard_fix.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 openwrt/package/dnsmasq/patches/102-domain_wildcard_fix.patch (limited to 'openwrt/package/dnsmasq/patches') diff --git a/openwrt/package/dnsmasq/patches/102-domain_wildcard_fix.patch b/openwrt/package/dnsmasq/patches/102-domain_wildcard_fix.patch new file mode 100644 index 000000000..041cd67cf --- /dev/null +++ b/openwrt/package/dnsmasq/patches/102-domain_wildcard_fix.patch @@ -0,0 +1,12 @@ +diff -urN dnsmasq.old/src/forward.c dnsmasq.dev/src/forward.c +--- dnsmasq.old/src/forward.c 2006-01-16 20:34:04.000000000 +0100 ++++ dnsmasq.dev/src/forward.c 2006-02-05 04:41:37.148190000 +0100 +@@ -164,7 +164,7 @@ + if (namelen >= domainlen && + hostname_isequal(matchstart, serv->domain) && + domainlen >= matchlen && +- (namelen == domainlen || *(serv->domain) == '.' || *(matchstart-1) == '.' )) ++ (namelen == domainlen || *(serv->domain) == '.' || *(matchstart-1) == '.' || domainlen == 0)) + { + unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6; + *type = SERV_HAS_DOMAIN; -- cgit v1.2.3