]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dns: make 'ancount' field to match the number of saved records
authorBaptiste Assmann <bedis9@gmail.com>
Thu, 4 May 2017 06:37:45 +0000 (08:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 09:40:16 +0000 (11:40 +0200)
commit69fce67b56f2fda613604e0520adb64d209041a8
tree200c4811732614369f34aa9ad2ac0fdadd6e7761
parentfa4a6630950138cfcb8904855c7517d9fdd472f7
MINOR: dns: make 'ancount' field to match the number of saved records

ancount is the number of answers available in a DNS response.
Before this patch, HAProxy used to store the ancount found in the buffer
(sent by the DNS server).
Unfortunately, this is now inaccurate and does not correspond to the
number of records effectively stored in our local version of the
response. In Example, the CNAMEs are not stored.

This patch updates ancount field in to make it match what is effectively
stored in our version.
src/dns.c