]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: don't use a wrong port when connecting to a server with mapped ports
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Sep 2011 08:27:12 +0000 (10:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Sep 2011 08:27:12 +0000 (10:27 +0200)
commitdd164d0240b0fc1030044d7b1bfad93401959eea
tree9610700d01474787db5937d88e1f345d2928d8d2
parent6ee71754e2ba5c2096903b86ada1610b8e72eb82
BUG/MINOR: don't use a wrong port when connecting to a server with mapped ports

Nick Chalk reported that a connection to a server which has no port specified
used twice the port number. The reason is that the port number was taken from
the wrong part of the address, the client's destination address was used as the
base port instead of the server's configured address.

Thanks to Nick for his helpful diagnostic.
src/backend.c