]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: use explicit __objt_server on idle conn reinsert
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Dec 2024 15:47:53 +0000 (16:47 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Dec 2024 17:02:55 +0000 (18:02 +0100)
commitece3bf65ca29e914a2c3b2aad643a09e39bb77c3
treeab8f5c624f186d077c4ae27e8303db93e26bc25a
parent7934eef25d1207392a1b4a915d21889babfb1fb0
MINOR: mux-h1: use explicit __objt_server on idle conn reinsert

When dealing with a backend connection, H1 mux IO handler must reinsert
it in its idle list pool if it was extracted from it at the beginning.
This is the case if conn_in_list is true.

On reinsert, idle list pool is retrieved via the server instance
accessible from <conn.target>. Replace objt_server usage with
__objt_server as an idle connection is always attached to a server. This
ensures that there is no issue when using _srv_add_idle() then.

This should fix coverity report from github issue #2810.
src/mux_h1.c