CLEANUP: always initialize the answer_list
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Oct 2021 09:29:21 +0000 (11:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Nov 2021 11:00:12 +0000 (12:00 +0100)
commit10fec734c9fc9f070de3b856bb90906eadcc4fa3
tree903ba571431a3ba181a2dbdc4d34e33796f54f82
parent1ba4c97210c2796f60403a2af497bca8376b279e
CLEANUP: always initialize the answer_list

Similar to the previous patch, the answer's list was only initialized the
first time it was added to a list, leading to bogus outdated pointer to
appear when debugging code is added around it to watch it. Let's make
sure it's always initialized upon allocation.

(cherry picked from commit 48664c048d17486b80e58459d2d4fa41a36e579e)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit a2373e82f574fdba5fb52ff0ef917b16dd44484a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/dns.c