From 000162e1d69ad07144c495bc6a2f0a12503bd763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 1 Apr 2022 09:04:57 +0200 Subject: [PATCH] BUG/MINOR: h3: Missing wait event struct field initialization This one has been detected by valgrind: ==2179331== Conditional jump or move depends on uninitialised value(s) ==2179331== at 0x1B6EDE: qcs_notify_recv (mux_quic.c:201) ==2179331== by 0x1A17C5: qc_handle_uni_strm_frm (xprt_quic.c:2254) ==2179331== by 0x1A1982: qc_handle_strm_frm (xprt_quic.c:2286) ==2179331== by 0x1A2CDB: qc_parse_pkt_frms (xprt_quic.c:2550) ==2179331== by 0x1A6068: qc_treat_rx_pkts (xprt_quic.c:3463) ==2179331== by 0x1A6C3D: quic_conn_app_io_cb (xprt_quic.c:3589) ==2179331== by 0x3AA566: run_tasks_from_lists (task.c:580) ==2179331== by 0x3AB197: process_runnable_tasks (task.c:883) ==2179331== by 0x357E56: run_poll_loop (haproxy.c:2750) ==2179331== by 0x358366: run_thread_poll_loop (haproxy.c:2921) ==2179331== by 0x3598D2: main (haproxy.c:3538) ==2179331== --- src/h3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/h3.c b/src/h3.c index 4d373f5d9..a7968454a 100644 --- a/src/h3.c +++ b/src/h3.c @@ -834,6 +834,7 @@ static int h3_uqs_init(struct h3_uqs *h3_uqs, struct h3 *h3, h3_uqs->wait_event.tasklet->process = t; h3_uqs->wait_event.tasklet->context = h3_uqs; + h3_uqs->wait_event.events = 0; return 1; }