mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 23:58:16 +00:00
MINOR: mux-spop: use explicit __objt_server on idle conn reinsert
This commit is the counterpart of the previous one for SPOP 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. This should fix coverity report from github issue #2811.
This commit is contained in:
parent
762d0764d7
commit
1778284824
@ -2492,7 +2492,7 @@ static struct task *spop_io_cb(struct task *t, void *ctx, unsigned int state)
|
||||
t = 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);
|
||||
|
Loading…
Reference in New Issue
Block a user