]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream: Don't call mux .ctl() callback if not implemented
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2023 18:18:53 +0000 (19:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2023 18:21:52 +0000 (19:21 +0100)
commit691f4cf449c700c7abedb845557d39cd788264b0
tree1de11508b80d5db308ebd26ca3868100d7c5fa40
parentd76fa37534b75a746ea799ed79a6377d449f22f6
BUG/MEDIUM: stream: Don't call mux .ctl() callback if not implemented

The commit 5ff7d2276 ("BUG/MEDIUM: stream: Properly handle abortonclose when set
on backend only") introduced a regression. Not all multiplexer implement the
.ctl() callback function. Thus we must be sure this callback function is defined
first to call it.

This patch should fix a crash reported by Tristan in the issue #2095. It must be
backported as far as 2.2, with the commit above.
src/stream.c