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.
This commit is contained in:
Amaury Denoyelle 2025-11-20 16:32:15 +01:00
parent cd2962ee64
commit b2664d4450

View 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;
}