]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: flag conn with CO_FL_FDLESS on backend side
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Nov 2025 15:32:15 +0000 (16:32 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Nov 2025 15:44:03 +0000 (16:44 +0100)
Connection struct defines an handle which can point to either a FD or a
quic_conn. On the latter case, CO_FL_FDLESS must be set. This is already
the case on frontend side.

This patch fixes QUIC backend support. Before setting connection handle
member to a quic_conn instance, ensure that CO_FL_FDLESS flag is set on
the connection.

Prior to this patch, crash can occur in "show sess all".

No need to backport.

src/xprt_quic.c

index b177c6656735463434da1123b7601b43fc7ed426..e16274771f1d1aa5fbe089bc3f09129d3deba3e0 100644 (file)
@@ -169,7 +169,7 @@ static int qc_conn_init(struct connection *conn, void **xprt_ctx)
 
                quic_cid_register_seq_num(conn_id, qc);
 
-               conn->flags |= CO_FL_SSL_WAIT_HS | CO_FL_WAIT_L6_CONN;
+               conn->flags |= CO_FL_SSL_WAIT_HS | CO_FL_WAIT_L6_CONN | CO_FL_FDLESS;
                conn->handle.qc = qc;
                qc->conn = conn;
        }