]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: resolvers: Accept to create resolution without hostname
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Sep 2025 09:52:04 +0000 (11:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Sep 2025 09:52:06 +0000 (11:52 +0200)
commite6a9192af68c5e385aa73c3e1cc51eb9f0cc09d6
tree95432463d70fdf4c726e32a4a12716f0bc5d0223
parent6cf2401edaf80806828526d214d1a9d5e25ba5d9
BUG/MEDIUM: resolvers: Accept to create resolution without hostname

A regression was introduced by commit 6cf2401ed ("BUG/MEDIUM: resolvers:
Make resolution owns its hostname_dn value"). In fact, it is possible (an
allowed ?!) to create a resolution without hostname (hostname_dn ==
NULL). It only happens on startup for a server relying on a resolver but
defined with an IP address and not a hostname

Because of the patch above, an error is triggered during the configuration
parsing when this happens, while it should be accepted.

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