]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: resolvers: Fix lookup for a hostname in the state-file tree
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 12:53:58 +0000 (14:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 14:33:56 +0000 (16:33 +0200)
commit3b1db89283612b6a80965113e1bb987c7d9cdf9e
treec1830798e46c78cffe1282b4f80b729e85588adc
parentbaf0924a504fccaffb43a5f1b673568f00411cf3
BUG/MINOR: resolvers: Fix lookup for a hostname in the state-file tree

In resolv_check_response(), the condition 'if (!srvrq->named_servers)' was
inverted - it ran the named server lookup when the tree was empty/NULL
instead of when it was populated. This prevented proper hostname-based
matching of SRV records to servers from the state file.

The issue was introduced when tree of servers was replaced by a cebis tree
(fdf6fd5b45).

This patch must be backported to 3.3.
src/resolvers.c