BUG/MEDIUM: spoe: Resolve the sink if a SPOE logs in a ring buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Feb 2021 09:56:41 +0000 (10:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Feb 2021 09:23:25 +0000 (10:23 +0100)
commit0dccf89c5f1f4f8c82a16a69004410d71eb37484
treee7643371265d00d55616d374ce9caa778dc0fcaa
parent6f682bea6ab08830d17ef3e973be6cc4d2474e69
BUG/MEDIUM: spoe: Resolve the sink if a SPOE logs in a ring buffer

If a SPOE filter is configured to send its logs to a ring buffer, the
corresponding sink must be resolved during the configuration post
parsing. Otherwise, the sink is undefined when a log message is emitted,
crashing HAProxy.

This patch must be backported as far as 2.2.

(cherry picked from commit 1d7d0f86b8a7f0d74b47e2afe08f87d9b963d9fb)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/flt_spoe.c