From: Christopher Faulet Date: Wed, 18 Sep 2019 09:11:46 +0000 (+0200) Subject: BUG/MINOR: mux-fcgi: Be sure to have a connection to unsubcribe X-Git-Tag: v2.1-dev2~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a99db937c59c7427af946250438e0c18c37caa87;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-fcgi: Be sure to have a connection to unsubcribe When the mux is released, It must own the connection to unsubcribe. This patch fixes the issue #283. No backport needed. --- diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index d2115ac9c5..ea8e48ba17 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -576,7 +576,7 @@ static void fcgi_release(struct fcgi_conn *fconn) } if (fconn->wait_event.tasklet) tasklet_free(fconn->wait_event.tasklet); - if (fconn->wait_event.events != 0) + if (conn && fconn->wait_event.events != 0) conn->xprt->unsubscribe(conn, conn->xprt_ctx, fconn->wait_event.events, &fconn->wait_event); }