]> git.kaiwu.me - haproxy.git/commit
CLEANUP: resolvers: properly initialize the sample in resolv_action_do_resolve()
authorWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 15:49:16 +0000 (17:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 15:51:58 +0000 (17:51 +0200)
commit0c8c9b1c2a968dad0c193edf6a26dcb0022c5813
tree6184eb2c1d92ab381b0580191689a6497662dec2
parentbed842390fce445c1eeabb7e7101fb5d5a7a3b36
CLEANUP: resolvers: properly initialize the sample in resolv_action_do_resolve()

The sample used to pass the IP address only had its data, px, sess and
strm fields initialized before being passed to vars_set_by_name(). It
turns out that this latter one doesn't seem to touch ctx, flags nor opt
but nothing guarantees it. Let's at least initialize the fields properly
to avoid passing random garbage.

No backport is needed.
src/resolvers.c