]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: log-forward: Fix ssl layer not initialized on bind even if configured
authorEmeric Brun <ebrun@haproxy.com>
Fri, 19 Aug 2022 13:16:26 +0000 (15:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Aug 2022 14:09:06 +0000 (16:09 +0200)
commita8942cd9c48680d7c6839ba8d04b158f5489dbaa
tree9f0d454aef066d41f99b567b5127bbf3c137ba45
parent3b68b6026161c53936be34b3c837cd3febcceefc
BUG/MAJOR: log-forward: Fix ssl layer not initialized on bind even if configured

Since commit 2071a99df ("MINOR: listener/ssl: set the SSL xprt layer only
once the whole config is known") the xprt is initialized for ssl directly
from a generic funtion used to parse bind args.

But the 'bind' lines from 'log-forward' sections were forgotten in commit
55f0f7bb5 ("MINOR: config: use the new bind_parse_args_list() to parse a
"bind" line").

This patch re-works 'log-forward' section parsing to use the generic
function to parse bind args and fix the issue.

Since the generic way to parse was introduced in 2.6, this patch
should be backported as far as this version.
src/log.c