]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: servers state: server port is erased when dns resolution is enabled on...
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 20 Jan 2016 23:17:09 +0000 (00:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Jan 2016 09:47:12 +0000 (10:47 +0100)
commita875b1f92e1c3796779dcdddd2fa494771acc705
tree39176ba674c7ab4fb77801b7d75cd33cc7083da4
parent7f43fa9b2ca1a981d89636416f49f2405290c7aa
BUG/MAJOR: servers state: server port is erased when dns resolution is enabled on a server

Servers state function save and apply server IP when DNS resolution is
enabled on a server.
Purpose is to prevent switching traffic from one server to an other one
when multiple IPs are returned by the DNS server for the A or AAAA
record.

That said, a bug in current code lead to erase the service port while
copying the IP found in the file into the server structure in HAProxy's
memory.
This patch fix this bug.

The bug was reported on the ML by Robert Samuel Newson and fix proposed
by Nenad Merdanovic.
Thank you both!!!

backport: can be backported to 1.6
src/server.c