]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: conn/muxes/ssl: add ASSUME_NONNULL() prior to _srv_add_idle
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Sep 2025 11:32:24 +0000 (13:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Sep 2025 13:35:22 +0000 (15:35 +0200)
commit1868ca9a951c699951cf2ccfd8aa7c61922ae338
treeb66198f20d513328a9c967ad59cd8b013410c87e
parentdcf22616123432e3230c0a084cf13c5adc57b851
MINOR: conn/muxes/ssl: add ASSUME_NONNULL() prior to _srv_add_idle

When manipulating idle backend connections for input/output processing,
special care is taken to ensure the connection cannot be accessed by
another thread, for example via a takeover. When processing is over,
connection is reinserted in its original list.

A connection can either be attached to a session (private ones) or a
server idle tree. In the latter case, <srv> is guaranteed to be non null
prior to _srv_add_idle() thanks to CO_FL_LIST_MASK comparison with conn
flags. This patch adds an ASSUME_NONNULL() to better reflect this.

This should fix coverity reports from github issue #3095.
src/connection.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_spop.c
src/ssl_sock.c