]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: fix risk of null deref on error path
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Oct 2020 09:35:32 +0000 (10:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Oct 2020 09:35:32 +0000 (10:35 +0100)
commita0133fcf3509afd1727a947b79284027f94245e0
treefb18e8f61f63e8a3ae3c660e5452f539a3f243a9
parentae32ac74dbc2cb93a07d7d29b4c20a075bc7741a
BUG/MINOR: log: fix risk of null deref on error path

Previous commit ae32ac74db ("BUG/MINOR: log: fix memory leak on logsrv
parse error") addressed one issue and introduced another one, the logsrv
pointer may also be null at the end of the function so we must test it
before deciding to dereference it.

This should be backported along with the patch above to 2.2.
src/log.c