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)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 20 Nov 2020 17:38:56 +0000 (18:38 +0100)
commit77e1c6fb0a5c5704315f05162f9a964bd8689c41
treec2dd9e58a90082c368382d3284aecb44021b7e68
parent7340457158b20fa89d9eba0e231b3a122f5620d3
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.
src/ssl_crtlist.c