BUG/MINOR: sink: Use the right field in appctx context in release callback
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jan 2022 14:03:22 +0000 (15:03 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Feb 2022 20:25:40 +0000 (21:25 +0100)
commiteed3cab77026bafde5277788580e9b42bdd81df5
tree7bc4aa0e0e68bd1c1231f94b8005df11d7d2af91
parent8e75b715cb990783931d35a3fec6bf6357a688d8
BUG/MINOR: sink: Use the right field in appctx context in release callback

In the release callback, ctx.peers was used instead of ctx.sft. Concretly,
it is not an issue because the appctx context is an union and these both
fields are structures with a unique pointer. But it will be a problem if
that changes.

This patch must be backported as far as 2.2.

(cherry picked from commit dd0b144c3ae83c2ea14f969cb58fa4b927c2c455)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/sink.c