]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: muxes: Don't expect to have a mux without connection in destroy callback
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 14 Apr 2022 09:08:26 +0000 (11:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 14 Apr 2022 09:57:05 +0000 (11:57 +0200)
commit7c452ccbff8261ead35c1bd8c932a8d4e4a3e451
tree9a65789220b0e908c1509d098a4a382c3ad299f9
parent86b08a3e3eb62d6642604846db3e40db37b91b16
MINOR: muxes: Don't expect to have a mux without connection in destroy callback

Once a mux initialized, the underlying connection alwaus exists from its
point of view and it is never removed until the mux is released. It may be
owned by another mux during an upgrade. But the pointer remains set. Thus
there is no reason to test it in the destroy callback function.

This patch should fix the issue #1652.
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c