]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: session: remove redundant target argument from session_add_conn()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Jul 2025 09:53:13 +0000 (11:53 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 30 Jul 2025 09:39:57 +0000 (11:39 +0200)
commitec1ab8d1715e0dbb2eab6e19424b06790a6784ff
tree722f78845b1587354797ef7167c6914431d48a10
parent668c2cfb0970f5cb47864095f3c53e752d155ca0
MINOR: session: remove redundant target argument from session_add_conn()

session_add_conn() uses three argument : connection and session
instances, plus a void pointer labelled as target. Typically, it
represents the server, but can also be a backend instance (for example
on dispatch).

In fact, this argument is redundant as <target> is already a member of
the connection. This commit simplifies session_add_conn() by removing
it. A BUG_ON() on target is extended to ensure it is never NULL.
include/haproxy/session.h
src/backend.c
src/connection.c
src/http_ana.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_quic.c
src/mux_spop.c