]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3175: IPv6 PTR lookup crashes on raw-IP URLs when IPv6 disabled
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 14 Mar 2011 21:40:59 +0000 (15:40 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 14 Mar 2011 21:40:59 +0000 (15:40 -0600)
src/dns_internal.cc

index a32b4935c7ba6e91e730b5fa574a751571f70af9..e8ee3ac7de44d6ef1438d451468f1d781fed2165 100644 (file)
@@ -1695,7 +1695,7 @@ idnsPTRLookup(const Ip::Address &addr, IDNSCB * callback, void *data)
     // idns_query is POD so no constructors are called after allocation
     q->xact_id.change();
 
-    if (Ip::EnableIpv6 && addr.IsIPv6()) {
+    if (addr.IsIPv6()) {
         struct in6_addr addr6;
         addr.GetInAddr(addr6);
         q->sz = rfc3596BuildPTRQuery6(addr6, q->buf, sizeof(q->buf), 0, &q->query, Config.dns.packet_max);