]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: Trace fix about packet number space information.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 8 Sep 2022 07:52:14 +0000 (09:52 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 8 Sep 2022 16:04:58 +0000 (18:04 +0200)
<qc> variable was confused with <qel>. The consequence was that it was
always the same packet number space which was displayed: the first one (or
the Initial packet number space).

Must be backported to 2.6.

src/xprt_quic.c

index 108a6e03b4522c9ff1fcd8cf443f8398175bdeb7..4cfd60f875abb9af6677c1b9f7d55fd42220ffca 100644 (file)
@@ -352,7 +352,7 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
                        const ssize_t *room = a4;
 
                        if (qel) {
-                               const struct quic_pktns *pktns = qc->pktns;
+                               const struct quic_pktns *pktns = qel->pktns;
                                chunk_appendf(&trace_buf, " qel=%c cwnd=%llu ppif=%lld pif=%llu "
                                              "if=%llu pp=%u",
                                              quic_enc_level_char_from_qel(qel, qc),