]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: dns: don't treat Authority records as an error
authorJerome Magnin <jerome@layaute.net>
Sun, 26 Jul 2020 10:13:12 +0000 (12:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Jul 2020 10:06:59 +0000 (12:06 +0200)
commit4002f8dc03d9825e8504c18648d9fc3d5a41ee99
treefc0eed44553e980ecd78114012fdf067b437c70c
parent012261ab34e2423df983c502b43b304f84b71c9e
BUG/MAJOR: dns: don't treat Authority records as an error

Support for DNS Service Discovery by means of SRV records was enhanced with
commit 13a9232eb ("MEDIUM: dns: use Additional records from SRV responses")
to use the content of the answers Additional records when present.

If there are Authority records before the Additional records we mistakenly
treat that as an invalid response. To fix this, just ignore the Authority
section if it exist and skip to the Additional records.

As 13a9232eb was introduced during 2.2-dev, it must be backported to 2.2.
This is a fix for issue #778
src/dns.c