]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listener: provide a function to process all of a bind_conf's arguments
authorWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 13:41:45 +0000 (15:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 16:39:43 +0000 (18:39 +0200)
commit3882d2a96ca1d37f60ea81f3ee993c39d808ce32
tree6120559d5e296053a7846c19a9b75d25db10336d
parent91b47263f7d534d818cabfa013ca090cc9302b4c
MINOR: listener: provide a function to process all of a bind_conf's arguments

The "bind" parsing code was duplicated for the peers section and as a
result it wasn't kept updated, resulting in slightly different error
behavior (e.g. errors were not freed, warnings were emitted as alerts)
Let's first unify it into a new dedicated function that properly reports
and frees the error.
include/haproxy/listener.h
src/listener.c