]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: fix possible NULL dereferences at config parsing
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 6 Jul 2022 12:30:23 +0000 (14:30 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 6 Jul 2022 12:40:11 +0000 (14:40 +0200)
commit1d93217a057cb202a49b0fae2ebcffc32495fbe6
treefdfbf71f83d44aa34ec54b0295a83c964e74a1fe
parentad92fdf1968ab231cac5eb1c81420568da413cec
BUG/MINOR: peers: fix possible NULL dereferences at config parsing

Patch 49f6f4b ("BUG/MEDIUM: peers: fix segfault using multiple bind on
peers sections") introduced possible NULL dereferences when parsing the
peers configuration.

Fix the issue by checking the return value of bind_conf_uniq_alloc().

This patch should be backported as far as 2.0.
src/cfgparse.c