]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: mux-quic: fix crash due to invalid trace arg
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 Aug 2022 16:22:22 +0000 (18:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 Aug 2022 16:24:53 +0000 (18:24 +0200)
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.

src/mux_quic.c

index 0e3a54d0444b141ad6616b34372067975d8a9eba..196f682c2333712206273448a057b584dddf9279 100644 (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);