]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: server: consider AF_UNSPEC as a valid address family
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Jan 2017 18:18:32 +0000 (19:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Jan 2017 18:21:37 +0000 (19:21 +0100)
commit3acfcd1aa10b933053e6398baba2eae2d32ae7a6
tree7e87fb56d2c11b3dc125b0ff08f678729bc0f763
parentd7dad1bc49176b9e2c6bc93d5918313b8054524e
BUG/MEDIUM: server: consider AF_UNSPEC as a valid address family

The DNS code is written so as to support AF_UNSPEC to decide on the
server family based on responses, but unfortunately snr_resolution_cb()
considers it as invalid causing a DNS storm to happen when a server
arrives with this family.

This situation is not supposed to happen as long as unresolved addresses
are forced to AF_INET, but this will change with the upcoming fixes and
it's possible that it's not granted already when changing an address on
the CLI.

This fix must be backported to 1.7 and 1.6.
src/server.c