BUG/MINOR: checks: Set missing id to the dummy checks frontend
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Apr 2021 08:49:07 +0000 (10:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Apr 2021 08:13:37 +0000 (10:13 +0200)
commit644cf33f3e2720ae65bb21e2ecec8b1224c38197
tree31d6cc4dd645b7d91cac5a2a0c0d54bfd2d233ba
parenta3259cb81e3960e5e45fe03a890a094002f3e283
BUG/MINOR: checks: Set missing id to the dummy checks frontend

The dummy frontend used to create the session of the tcp-checks is
initialized without identifier. However, it is required because this id may
be used without any guard, for instance in log-format string via "%f" or
when fe_name sample fetch is called. Thus, an unset id may lead to crashes.

This patch must be backported as far as 2.2.

(cherry picked from commit 0f1fc23d4e3060c4277c11c9f1f41c27d8e54fbf)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/check.c