MINOR: conn-stream: Use unsafe functions to get conn/appctx in cs_detach_endp
There is no reason to rely on safe functions here. This patch should fix the issue #1656.
This commit is contained in:
parent
4de1bff866
commit
cea05437c0
@ -350,7 +350,7 @@ void cs_detach_endp(struct conn_stream *cs)
|
|||||||
goto reset_cs;
|
goto reset_cs;
|
||||||
|
|
||||||
if (cs->endp->flags & CS_EP_T_MUX) {
|
if (cs->endp->flags & CS_EP_T_MUX) {
|
||||||
struct connection *conn = cs_conn(cs);
|
struct connection *conn = __cs_conn(cs);
|
||||||
|
|
||||||
if (conn->mux) {
|
if (conn->mux) {
|
||||||
/* TODO: handle unsubscribe for healthchecks too */
|
/* TODO: handle unsubscribe for healthchecks too */
|
||||||
@ -372,7 +372,7 @@ void cs_detach_endp(struct conn_stream *cs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (cs->endp->flags & CS_EP_T_APPLET) {
|
else if (cs->endp->flags & CS_EP_T_APPLET) {
|
||||||
struct appctx *appctx = cs_appctx(cs);
|
struct appctx *appctx = __cs_appctx(cs);
|
||||||
|
|
||||||
cs->endp->flags |= CS_EP_ORPHAN;
|
cs->endp->flags |= CS_EP_ORPHAN;
|
||||||
cs_applet_release(cs);
|
cs_applet_release(cs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user