diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-02-05 03:59:55 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-02-05 03:59:55 +0000 |
commit | 30b66800e7eebe1bd2a8b474e958c14d59363d54 (patch) | |
tree | 9624115a4f731d2bc1233c80e5286d3c3742e6cb | |
parent | 7fbe0ed3f81f21d71a77b9b8e9cf52b0c3735dbf (diff) | |
download | mtk-20170518-30b66800e7eebe1bd2a8b474e958c14d59363d54.zip mtk-20170518-30b66800e7eebe1bd2a8b474e958c14d59363d54.tar.gz mtk-20170518-30b66800e7eebe1bd2a8b474e958c14d59363d54.tar.bz2 |
fix static domain wildcards in dnsmasq (broken by upgrade to 2.26)
SVN-Revision: 3135
-rw-r--r-- | openwrt/package/dnsmasq/patches/102-domain_wildcard_fix.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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 0000000..041cd67 --- /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; |