]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Correct F->sock_family setting on accept sockets, ipv6/ipv4 compile condition was...
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 14 May 2010 01:08:15 +0000 (03:08 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 14 May 2010 01:08:15 +0000 (03:08 +0200)
src/comm.cc

index 3128c2e73f08bfc61717f25e8f87381f4f72d82a..ebaf35d12dcf42f8888b747538f4b53527b157e9 100644 (file)
@@ -1424,9 +1424,9 @@ comm_old_accept(int fd, ConnectionDetail &details)
     F->remote_port = details.peer.GetPort();
     F->local_addr.SetPort(details.me.GetPort());
 #if USE_IPV6
-    F->sock_family = AF_INET;
-#else
     F->sock_family = details.me.IsIPv4()?AF_INET:AF_INET6;
+#else
+    F->sock_family = AF_INET;
 #endif
     details.me.FreeAddrInfo(gai);