From: Amaury Denoyelle Date: Fri, 6 Dec 2024 16:44:26 +0000 (+0100) Subject: MINOR: mux-h2: use explicit __objt_server on idle conn reinsert X-Git-Tag: v3.2-dev1~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=762d0764d73d0195e6033869331aeae5cecddf71;p=thirdparty%2Fhaproxy.git MINOR: mux-h2: use explicit __objt_server on idle conn reinsert This commit is the counterpart of the previous one for H2 mux. It replaces objt_server() by unsafe __objt_server(), as conn target is guarantee to point to a valid server instance, which can then be used as _srv_add_idle() argument. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 9788753f6b..4479a311c1 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -4816,7 +4816,7 @@ struct task *h2_io_cb(struct task *t, void *ctx, unsigned int state) h2c->next_tasklet = NULL; if (!ret && conn_in_list) { - struct server *srv = objt_server(conn->target); + struct server *srv = __objt_server(conn->target); HA_SPIN_LOCK(IDLE_CONNS_LOCK, &idle_conns[tid].idle_conns_lock); _srv_add_idle(srv, conn, conn_in_list == CO_FL_SAFE_LIST);