From b2664d44506671f76efd49877aac961c443e6e9d Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 20 Nov 2025 16:32:15 +0100 Subject: [PATCH] BUG/MINOR: quic: flag conn with CO_FL_FDLESS on backend side 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index b177c6656..e16274771 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -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; }