]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: init: fix missing error on no listener on config check
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 13 Nov 2026 10:42:29 +0000 (11:42 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 13 Nov 2026 10:53:31 +0000 (11:53 +0100)
commit2cd73b0826ee71a07a245649330ab15e5d9bc929
tree2255ab7e14890b02ffc6a5b2a3a9be16575baa5e
parent429ca30e1b0d8a400761bd057a3943acc674d3f8
BUG/MINOR: init: fix missing error on no listener on config check

Since the conversion of the list of proxies, sinks and logs from a plain
linked list to a full struct list type, config check would not report an
error anymore if no listener is present.

This is caused because iterations are now performed via
list_for_each_entry() without producing a final NULL iterator value. Fix
this by using a plain boolean set during the loop and check its value at
the end instead of inspecting the iterator itself.

This should fix github issue #3567.

No need to backport.
src/haproxy.c