]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
TESTS: quic: fix uninit of quic_cc_path const member
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Oct 2025 07:22:44 +0000 (09:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Oct 2025 07:29:01 +0000 (09:29 +0200)
Fix quic_tx unittest module by adding an explicit define for <mtu> const
member of quic_cc_path.

This should fix coverity report from github issue #3162.

This can be backported up to 3.2.

src/quic_tx.c

index 304ab6892d8b1d1a6b812d39b8256c6cfd6ab0e0..92348834fecb59b18937e0ae65e8aefc87c72957 100644 (file)
@@ -2234,7 +2234,7 @@ static struct quic_tx_packet *qc_build_pkt(unsigned char **pos,
 int quic_tx_unittest(int argc, char **argv)
 {
        struct quic_conn qc;
-       struct quic_cc_path path;
+       struct quic_cc_path path = { .mtu = QUIC_INITIAL_IPV4_MTU };
        struct quic_pktns pktns;
        struct quic_enc_level qel;
        struct quic_tx_packet pkt;