From: Amaury Denoyelle Date: Wed, 2 Dec 2026 15:19:32 +0000 (+0100) Subject: BUG/MINOR: h3: always initialize to remove any ambiguity X-Git-Url: https://git.kaiwu.me/web/http/static/%7B@url%7D?a=commitdiff_plain;h=a8ad85bb70f3224bca8e1debdf5c850d99c27e3c;p=haproxy.git BUG/MINOR: h3: always initialize to remove any ambiguity This patch ensures that the h3c connection member is always initialized to NULL. This is similar to the previous patch which dealt with the member: the current code is ambiguous for a backend connection whose target could be either a server or a proxy instance. This is no longer possible since the removal of dispatch and option transparent modes, but the NULL initialization is kept as a defensive measure. This should be backported up to 3.5. --- diff --git a/src/h3.c b/src/h3.c index 3cc5a0b02..35785db64 100644 --- a/src/h3.c +++ b/src/h3.c @@ -3903,6 +3903,7 @@ static int h3_init(struct qcc *qcc) h3c->flags = 0; h3c->id_shut_l = 0; h3c->id_shut_r = 0; + h3c->hdng_prf = NULL; qcc->ctx = h3c; h3c->prx_counters = qc_counters(qcc->conn->target, &h3_stats_module);