From: Christopher Faulet Date: Thu, 4 Aug 2022 14:00:13 +0000 (+0200) Subject: BUG/MEDIUM: sink: Set the sink ref for forwarders created during ring parsing X-Git-Tag: v2.7-dev3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96417f392d4fdb4dca59db244a349ca0796c39b1;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: sink: Set the sink ref for forwarders created during ring parsing A reference to the sink was added in every forwarder by the commit 2ae25ea24 ("MINOR: sink: Add a ref to sink in the sink_forward_target structure"). But this commit is incomplete. It is not performed for the forwarders created during a ring parsing. This patch must be backported to 2.6. --- diff --git a/src/sink.c b/src/sink.c index 0891bb34bd..38a082ed43 100644 --- a/src/sink.c +++ b/src/sink.c @@ -1102,6 +1102,7 @@ int cfg_post_parse_ring() sft->srv = srv; sft->appctx = NULL; sft->ofs = ~0; /* init ring offset */ + sft->sink = cfg_sink; sft->next = cfg_sink->sft; HA_SPIN_INIT(&sft->lock);