From: Amos Jeffries Date: Mon, 14 Mar 2011 21:40:59 +0000 (-0600) Subject: Bug 3175: IPv6 PTR lookup crashes on raw-IP URLs when IPv6 disabled X-Git-Tag: take06~27^2~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e6de170917ba9b5e7e80fa4fc0b7d7cbad2f5ae;p=thirdparty%2Fsquid.git Bug 3175: IPv6 PTR lookup crashes on raw-IP URLs when IPv6 disabled --- diff --git a/src/dns_internal.cc b/src/dns_internal.cc index a32b4935c7..e8ee3ac7de 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -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);