]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: logs: fix http-client's log srv initialization
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Apr 2022 12:14:28 +0000 (14:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Apr 2022 07:40:44 +0000 (09:40 +0200)
commite1e9f6bbe5af49b275493ce78fbd000542642792
treea45a072ae338ef1f3a17bf427717e2315cf1e354
parenta3daaec5a6e3d1342be288105296df68162737b3
BUG/MEDIUM: logs: fix http-client's log srv initialization

As anticipated in commit 211ea252d ("BUG/MINOR: logs: fix logsrv leaks
on clean exit"), there were indeed other corner cases that were not
properly covered. Setting the http client's ring_name to NULL make the
sink lookup crash on startup in sink_find () with a config as simple as:

    global
        log ring@buf0 local0

The fields must be properly initialized (both config file name and
the ring_name). This only needs to be backported if/when the commit
above is backported.
src/http_client.c