BUG/MINOR: ssl: Fix fd leak on error path when a TLS ticket keys file is parsed
When an error occurred in the function bind_parse_tls_ticket_keys(), during the
configuration parsing, the opened file is not always closed. To fix the bug, all
errors are catched at the same place, where all ressources are released.
This patch fixes the bug #325. It must be backported as far as 1.7.
(cherry picked from commit e566f3db11e781572382e9bfff088a26dcdb75c5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed