]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: resolvers: do not duplicate the hostname_dn field
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2025 14:57:24 +0000 (16:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Jul 2025 05:54:45 +0000 (07:54 +0200)
commit96da670cd71cc2f6b41f87d4fc22f9517789b6da
tree2506d69f0ecde6570f82ad4665278b7afa95c4ef
parent95cf518bfa312b3493f96a4ff6f911b014a49aec
MINOR: resolvers: do not duplicate the hostname_dn field

The hostdn.key field in the server contains a pure copy of the hostname_dn
since commit 3406766d57 ("MEDIUM: resolvers: add a ref between servers and
srv request or used SRV record") which wanted to lowercase it. Since it's
not necessary, let's drop this useless copy. In addition, the return from
strdup() was not tested, so it could theoretically crash the process under
heavy memory contention.
src/resolvers.c
src/server_state.c