]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: resolvers: Make resolution owns its hostname_dn value
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Sep 2025 07:50:56 +0000 (09:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Sep 2025 09:09:19 +0000 (11:09 +0200)
commit6cf2401edaf80806828526d214d1a9d5e25ba5d9
tree513c935328fef9e7afd4fb333ba2329ae07264cc
parentf6dfbbe870999d0bcf1c46306563117a4dc848e9
BUG/MEDIUM: resolvers: Make resolution owns its hostname_dn value

The commit 37abe56b1 ("BUG/MEDIUM: resolvers: Properly cache do-resolv
resolution") introduced a regression. A resolution does not own its
hostname_dn value, it is a pointer on the first request value. But since the
commit above, it is possible to have orphan resolution, with no
requester. So it is important to modify the resolutions to make it owns its
hostname_dn value by duplicating it when it is created.

This patch must be backported with the commit above.
src/resolvers.c