]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-spop: Fix null-pointer deref on SPOP stream allocation failure
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Jun 2025 06:48:48 +0000 (08:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Jun 2025 06:48:49 +0000 (08:48 +0200)
commit8c4bb8cab37f72c451bc7685eaf58cb1c2f5fae2
treeea0911a9c233d78a8609197b775aa3cbc17d3dba
parent6786b05297d7c32cfcecbdabedef13aef149b553
BUG/MINOR: mux-spop: Fix null-pointer deref on SPOP stream allocation failure

When we try to allocate a new SPOP stream, if an error is encountered,
spop_strm_destroy() is called to released the eventually allocated
stream. But, it must only be called if a stream was allocated. If the
reported error is an SPOP stream allocation failure, we must just leave to
avoid null-pointer dereference.

This patch should fix point 1 of the issue #2993. It must be backported as
far as 3.1.
src/mux_spop.c