BUG/MINOR: mux-fcgi: Be sure to have a connection as session's origin to use it
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Apr 2020 05:19:04 +0000 (07:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 May 2020 10:19:54 +0000 (12:19 +0200)
commitcc4f88bdb643d9b6f94a6820fec77f6aba6e7ae1
treeabe622a16d60a36b2fcf60731629f82ce534004b
parent6bd76726c3fba7d85d3326ec56d4159db585868f
BUG/MINOR: mux-fcgi: Be sure to have a connection as session's origin to use it

When default parameters are set in a request message, we get the client
connection using the session's origin. But it is not necessarily a
conncection. For instance, for health checks, thanks to recent changes, it may
be a check object. At this step, the client connection may be NULL. Thus, we
must be sure to have a client connection before using it.

This patch must be backported to 2.1.

(cherry picked from commit bb86a0f7be6ba8a248321a59c4b865e01e33f106)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/mux_fcgi.c