X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=net-dns%2Fdjbdns%2Ffiles%2Fquery.c-mjo.patch;h=a753a367b5b3e53f958210196e5b5c81e1a249f4;hb=1dd4baeebded74541305e5d96560efdb5ad1122a;hp=3eaa49e604a1cadcaba4552881b0359e5d576293;hpb=3d91893644ded445fcc66edf6e92b4cae55fd534;p=mjo-overlay.git diff --git a/net-dns/djbdns/files/query.c-mjo.patch b/net-dns/djbdns/files/query.c-mjo.patch index 3eaa49e..a753a36 100644 --- a/net-dns/djbdns/files/query.c-mjo.patch +++ b/net-dns/djbdns/files/query.c-mjo.patch @@ -1,12 +1,10 @@ --- query.c 2011-04-07 16:32:17.247618922 -0400 +++ query.c.mjo 2011-04-07 16:39:52.326465569 -0400 -@@ -532,7 +532,41 @@ +@@ -532,7 +532,39 @@ } } - if (!typematch(DNS_T_ANY,dtype) && !typematch(DNS_T_AXFR,dtype) && !typematch(DNS_T_CNAME,dtype) && !typematch(DNS_T_NS,dtype) && !typematch(DNS_T_PTR,dtype) && !typematch(DNS_T_A,dtype) && !typematch(DNS_T_MX,dtype) && !typematch(DNS_T_SOA,dtype)) { -+ -+ + if (typematch(DNS_T_AAAA,dtype)) { + byte_copy(key,2,DNS_T_AAAA); + cached = cache_get(key,dlen + 2,&cachedlen,&ttl); @@ -39,7 +37,7 @@ + } + } + -+ if (!typematch(DNS_T_ANY,dtype) && !typematch(DNS_T_AXFR,dtype) && !typematch(DNS_T_CNAME,dtype) && !typematch(DNS_T_NS,dtype) && !typematch(DNS_T_PTR,dtype) && !typematch(DNS_T_A,dtype) && !typematch(DNS_T_MX,dtype) && !typematch(DNS_T_SOA,dtype) && !typematch(DNS_T_AAAA,dtype)) { ++ if (!typematch(DNS_T_ANY,dtype) && !typematch(DNS_T_AXFR,dtype) && !typematch(DNS_T_CNAME,dtype) && !typematch(DNS_T_NS,dtype) && !typematch(DNS_T_PTR,dtype) && !typematch(DNS_T_A,dtype) && !typematch(DNS_T_MX,dtype) && !typematch(DNS_T_SOA,dtype) && !typematch(DNS_T_AAAA,dtype)) { byte_copy(key,2,dtype); cached = cache_get(key,dlen + 2,&cachedlen,&ttl); if (cached && (cachedlen || byte_diff(dtype,2,DNS_T_ANY))) {