BUG/MEDIUM: dns: improper parsing of aditional records
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 19 Feb 2020 00:08:51 +0000 (01:08 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 26 Mar 2020 11:43:36 +0000 (12:43 +0100)
commit37950c8d271ea7191f958299f79e4306f6db8506
treec0e768f389537bfa1f494401b883843277f97471
parent17ab79f07db305c5f086f4e8fab1e3a6d38bb620
BUG/MEDIUM: dns: improper parsing of aditional records

13a9232ebc63fdf357ffcf4fa7a1a5e77a1eac2b introduced parsing of
Additionnal DNS response section to pick up IP address when available.
That said, this introduced a side effect for other query types (A and
AAAA) leading to consider those responses invalid when parsing the
Additional section.
This patch avoids this situation by ensuring the Additional section is
parsed only for SRV queries.
src/dns.c