]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stconn: Reset SE descriptor when we fail to create a stream
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Sep 2022 07:18:20 +0000 (09:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Sep 2022 09:18:11 +0000 (11:18 +0200)
commit3ab72c66a01ca81aa93cf1f0bd29430db8271792
tree2d6c5f3f25b40c582036102cd62ad3c029171e3b
parent4cfc038cb19996f5d2fe60284fdb556503a5f9ef
BUG/MEDIUM: stconn: Reset SE descriptor when we fail to create a stream

If stream_new() fails after the frontend SC is attached, the underlying SE
descriptor is not properly reset. Among other things, SE_FL_ORPHAN flag is
not set again. Because of this error, a BUG_ON() is triggered when the mux
stream on the frontend side is destroyed.

Thus, now, when stream_new() fails, SE_FL_ORPHAN flag is set on the SE
descriptor and its stream-connector is set to NULL.

This patch should solve the issue #1880. It must be backported to 2.6.
src/stconn.c