]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix peerSelectDnsResults() IP address cycling
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Feb 2014 01:24:53 +0000 (18:24 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Feb 2014 01:24:53 +0000 (18:24 -0700)
commitb43f99318deaf9224506262fe7c2d59dc558319c
tree794bd106093f36f950b52aebc1b53c668ae805e2
parente02ed2e327ed0bebf2442178949def6961f279d9
Fix peerSelectDnsResults() IP address cycling

The local ip variable is the index of the IP address to be used.
Loop counter n is only used to prevent cycling indefinitely and should
not be used to access the array indexes.
src/peer_select.cc