From fa6a39d77386194eba27a8847c60c2c0b832b7d4 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 22 May 2010 17:59:58 +1200 Subject: [PATCH] Wrap extra IPv6 comm failover cases properly. --- src/comm.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/comm.cc b/src/comm.cc index 3c0d020dce..99245001bb 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1221,8 +1221,9 @@ comm_connect_addr(int sock, const Ip::Address &address) assert(address.GetPort() != 0); - debugs(5, 9, "comm_connect_addr: connecting socket " << sock << " to " << address << " (want family: " << F->sock_family << ")"); + debugs(5, 9, HERE << "connecting socket FD " << sock << " to " << address << " (want family: " << F->sock_family << ")"); +#if USE_IPV6 /* Handle IPv6 over IPv4-only socket case. * this case must presently be handled here since the GetAddrInfo asserts on bad mappings. * NP: because commResetFD is private to ConnStateData we have to return an error and @@ -1244,6 +1245,7 @@ comm_connect_addr(int sock, const Ip::Address &address) errno = ENETUNREACH; return COMM_ERR_PROTOCOL; } +#endif /* USE_IPV6 */ address.GetAddrInfo(AI, F->sock_family); -- 2.47.3