BUG/MEDIUM: ssl/crt-list: fix error when no file found
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 20 Nov 2020 17:26:09 +0000 (18:26 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Nov 2020 13:39:49 +0000 (14:39 +0100)
commit7993ebcdfe218a20a2ca689b2e33ae45d554e6e6
tree61c411e3ba3784d7e1089ab8c01c55151fec262c
parent69d90d7686efa566f6a34b101875abf4b0896fb4
BUG/MEDIUM: ssl/crt-list: fix error when no file found

When a file from a crt-list was not found, this one was ignored silently
letting HAProxy starts without it.

This bug was introduced by 47da821 ("MEDIUM: ssl: emulates the
multi-cert bundles in the crtlist").

This commit adds a found variable which is checked once we tried every
bundle combination so we can exits with an error if none were found.

Must be backported in 2.3.

(cherry picked from commit 77e1c6fb0a5c5704315f05162f9a964bd8689c41)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/ssl_crtlist.c