]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: dns: gracefully handle the "udp@" address format for nameservers
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 18:04:17 +0000 (20:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 18:11:52 +0000 (20:11 +0200)
commite42d87f3de4c5310e65f52a60e825a8349bf7d8c
treea8635e149a9e08ebf5ada426816fe36eeca4f21d
parente1c4c80441cbffaf0236d9970582293ce0b9089c
BUG/MINOR: dns: gracefully handle the "udp@" address format for nameservers

Just like with previous commit, DNS nameservers are affected as well with
addresses starting in "udp@", but here it's different, because due to
another bug in the DNS parser, the address is rejected, indicating that
it doesn't have a ->connect() method. Similarly, the DNS code believes
it's working on top of TCP at this point and this used to work because of
this. The same fix is applied to remap the protocol and the ->connect test
was dropped.

No backport is needed, as the ->connect() test will never strike in 2.2
or below.
src/cfgparse.c