]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: xprt_qstrm: ensure all local TPs are allocated
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Apr 2026 15:51:03 +0000 (17:51 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Apr 2026 07:33:04 +0000 (09:33 +0200)
Complete initialization of xprt_qstrm layer by setting local parameters
to zero. This should prevent to emit random values to the peer.

No backport needed.

src/xprt_qstrm.c

index c2b330fdaa3b598cae5a775afa820b2ba30397b5..6583252250307a0883287ee4d88efa9d630321c0 100644 (file)
@@ -272,6 +272,7 @@ static int xprt_qstrm_init(struct connection *conn, void **xprt_ctx)
        ctx->txbuf = BUF_NULL;
 
        memset(&ctx->rparams, 0, sizeof(struct quic_transport_params));
+       memset(&ctx->lparams, 0, sizeof(struct quic_transport_params));
 
        /* TP configuration advertised by us */
        ctx->lparams.max_idle_timeout = 30;