]> 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>
Tue, 22 Mar 2011 12:06:53 +0000 (06:06 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 22 Mar 2011 12:06:53 +0000 (06:06 -0600)
src/dns_internal.cc

index f3930df8ea24fcf18aec83e247680601ce27eb32..aa7f187f5c8bdad6f78945648f6951f0eb52d323 100644 (file)
@@ -1581,7 +1581,7 @@ idnsPTRLookup(const IpAddress &addr, IDNSCB * callback, void *data)
 
     q->id = idnsQueryID();
 
-    if (Ip::EnableIpv6 && addr.IsIPv6()) {
+    if (addr.IsIPv6()) {
         struct in6_addr addr6;
         addr.GetInAddr(addr6);
         q->sz = rfc3596BuildPTRQuery6(addr6, q->buf, sizeof(q->buf), q->id, &q->query);