]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: hlua: fix return with push nil on proxy check
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 3 Mar 2026 07:45:27 +0000 (08:45 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 3 Mar 2026 07:45:27 +0000 (08:45 +0100)
commitf41e684e9a38107cb4c12d1a974162bd0951998c
treebbe7a4dc42a9bac211a1450382107b79e90fa6e4
parente07a75c76455fc035547a975ae19c24325fff0f3
BUG/MINOR: hlua: fix return with push nil on proxy check

hlua_check_proxy() may now return NULL if the target proxy instance has
been flagged for deletion. Thus, proxies method have been adjusted and
may push nil to report such case.

This patch fixes these error paths. When nil is pushed, 1 must be
returned instead of 0. This represents the count of pushed values on the
stack which can be retrieved by the caller.

No need to backport.
src/hlua_fcn.c