BUG/MEDIUM: mux-quic: fix crash due to invalid trace arg

Traces argument were incorrectly used in qcs_free(). A qcs was specified
as first arg instead of a connection. This will lead to a crash if
developer qmux traces are activated. This is now fixed.

This bug has been introduced with QUIC MUX traces rework. No need to
backport.
This commit is contained in:
Amaury Denoyelle 2022-08-11 18:22:22 +02:00
parent 4c9a1642c1
commit 6bdf9367fb

View File

@ -229,7 +229,7 @@ static void qc_free_ncbuf(struct qcs *qcs, struct ncbuf *ncbuf)
*/
static void qcs_free(struct qcs *qcs)
{
TRACE_ENTER(QMUX_EV_QCS_END, qcs);
TRACE_ENTER(QMUX_EV_QCS_END, qcs->qcc->conn, qcs);
qc_free_ncbuf(qcs, &qcs->rx.ncbuf);
b_free(&qcs->tx.buf);