]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker/httpclient: initialization skipped by accident in mworker mode
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 17 Oct 2024 10:09:05 +0000 (12:09 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 17 Oct 2024 10:16:35 +0000 (12:16 +0200)
commitfdbff3a02083c398b895ac198f22deeb5c042dc6
treee27cd0849d2ae3dc8ea89c2076a02f566eadf489
parente7b7072943d658702eba3651d66c6093f1a79fa8
BUG/MEDIUM: mworker/httpclient: initialization skipped by accident in mworker mode

Since commit fe75c1e12da061 ("MEDIUM: startup: remove
MODE_MWORKER_WAIT") the MODE_MWORKER_WAIT constant disappearded. The
initialization of the httpclient proxy was conditionned by this
constant.

The proxy must be created in mworker mode, but only in the worker not in
the master. It was currently completely disabled in both the master and
the worker provoking a NULL dereference upon httpclient usage.

No backport needed.
src/http_client.c