]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: quic: use the right trace event in quic_tls_key_update()
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 29 Oct 2026 10:47:16 +0000 (11:47 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Tue, 3 Nov 2026 06:56:46 +0000 (07:56 +0100)
The next RX/TX secret lengths are reported with QUIC_EV_CONN_SPPKTS,
whose handler expects a <struct quic_tx_packet *>, while the rest of the
function uses QUIC_EV_CONN_KP event. TRACE_PRINTF() bypasses the source
callback through <&trace_no_cb>, so nothing crashed: the message was
just filtered under the wrong event.

src/quic_tls.c

index 10d7e7ade097c77a747f5bf67e13f414578d2d6e..a52a42416fbcbd145cfeb563e69a102fa840dfa4 100644 (file)
@@ -1088,7 +1088,7 @@ int quic_tls_key_update(struct quic_conn *qc)
 
        TRACE_ENTER(QUIC_EV_CONN_KP, qc);
 
-       TRACE_PRINTF(TRACE_LEVEL_DEVELOPER, QUIC_EV_CONN_SPPKTS, qc, 0, 0, 0,
+       TRACE_PRINTF(TRACE_LEVEL_DEVELOPER, QUIC_EV_CONN_KP, qc, 0, 0, 0,
                     "nxt_rx->secretlen=%llu rx->secretlen=%llu",
                     (ull)nxt_rx->secretlen, (ull)rx->secretlen);
        /* Prepare new RX secrets */