From: Amos Jeffries Date: Sat, 16 Jan 2010 06:35:28 +0000 (+1300) Subject: Build issue after portages X-Git-Tag: SQUID_3_0_STABLE22~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2589e38d54153a119080be850670a29abc1535d1;p=thirdparty%2Fsquid.git Build issue after portages --- diff --git a/src/comm.cc b/src/comm.cc index 90ed281eb5..241c92389f 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1357,7 +1357,7 @@ comm_old_accept(int fd, ConnectionDetail &details) memset(&details.me, '\0', Slen); if ( Config.client_ip_max_connections >= 0) { - if (clientdbEstablished(details.peer, 0) > Config.client_ip_max_connections) { + if (clientdbEstablished(details.peer.sin_addr, 0) > Config.client_ip_max_connections) { debugs(50, DBG_IMPORTANT, "WARNING: " << inet_ntoa(details.peer.sin_addr) << " attempting more than " << Config.client_ip_max_connections << " connections."); return COMM_ERROR; }