]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4928: Cannot convert non-IPv4 to IPv4 (#379) M-staged-PR379
authorAmos Jeffries <yadij@users.noreply.github.com>
Thu, 7 Mar 2019 13:50:38 +0000 (13:50 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 10 Mar 2019 11:16:38 +0000 (11:16 +0000)
commitd3396b5698f7f5f6ac5114de77d3757d2d013229
tree7acdf711583d15498f42c8ffc5207c99c7cb2667
parent7e6eabbc6976f939079e2abbbc52c2a98d65bd89
Bug 4928: Cannot convert non-IPv4 to IPv4 (#379)

… when reaching client_ip_max_connections

The client_ip_max_connections limit is checked before the TCP
dst-IP is located for the newly received TCP connection. This
leaves Squid unable to fetch the NFMARK or similar details later
on (they do not exist for [::]).

Move client_ip_max_connections test later in the TCP accept
process to ensure dst-IP is known when the error is produced.
src/comm/TcpAcceptor.cc