]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] checks: use the correct destination port for sending checks
authorWilly Tarreau <w@1wt.eu>
Sat, 27 Aug 2011 09:51:36 +0000 (11:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 27 Aug 2011 09:51:36 +0000 (11:51 +0200)
commit48da04a6af9325a3ff379ea7d313c80233bfb8d6
tree73b9368ec7ce0f657020b7c2a4823b2848a9d14b
parente17a8d02d99b09d1d6ddf8286c5060c05edc1b93
[BUG] checks: use the correct destination port for sending checks

In the number of switch/case statements added for IPv6 changes,
one was wrong and caused the check port to be ignored for outgoing
connection because the socket's family was not taken at the right
place. Use the set_host_port() macro instead to fix the issue.

The same cleanup could be performed at a number of other places
and should follow shortly.

Special thanks to Stephane Bakhos of Techboom for reporting a
detailed analysis of this bug.
src/checks.c