]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: resolvers: Set port before IP address when processing SRV records
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Nov 2022 15:41:46 +0000 (16:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 16 Nov 2022 08:27:09 +0000 (09:27 +0100)
commit2364b39984e4fd4aa6a88148520d49fe0620c034
tree892a0019d839e6cf1b623c8891e14cd7639023ce
parent68a61b63214d2514f793842b995df31ea46e8fd4
BUG/MINOR: resolvers: Set port before IP address when processing SRV records

For a server subject to SRV resolution, when the server's address is set,
its dynamic cookie, if any, and its server key are computed. Both are based
on the ip/port pair. However, this happens before the server's port is
set. Thus the port is equal to 0 at this stage. It is a problem if several
servers share the same IP but with different ports because they will share
the same dynamic cookie and the same server key, disturbing this way the
connection persistency and the session stickiness.

This patch must be backported as far as 2.2.
src/resolvers.c