]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker: fix segv in early failure of mworker mode with peers
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 7 Dec 2022 14:21:24 +0000 (15:21 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 7 Dec 2022 14:27:36 +0000 (15:27 +0100)
commit035058e8bfe4fc731b2ede8fcdc2b8d14c4936ce
treef97b1ce6171321eff36b6bd0ba640f1d368345b5
parent40db4ae8bb864adfebbd4529a3bae187974b3698
BUG/MEDIUM: mworker: fix segv in early failure of mworker mode with peers

During an early failure of the mworker mode, the
mworker_cleanlisteners() function is called and tries to cleanup the
peers, however the peers are in a semi-initialized state and will use
NULL pointers.

The fix check the variable before trying to use them.

Bug revealed in issue #1956.

Could be backported as far as 2.0.
src/mworker.c