From: William Lallemand Date: Tue, 15 Oct 2019 11:44:57 +0000 (+0200) Subject: BUG/MINOR: ssl: can't load ocsp files X-Git-Tag: v2.1-dev3~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0f48ae976cb4774537ce46a1fa35d8cdbc64928;p=thirdparty%2Fhaproxy.git BUG/MINOR: ssl: can't load ocsp files 246c024 ("MINOR: ssl: load the ocsp in/from the ckch") broke the loading of OCSP files. The function ssl_sock_load_ocsp_response_from_file() was not returning 0 upon success which lead to an error after the .ocsp was read. --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 1a48e2a392..1143065eca 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -917,6 +917,7 @@ static int ssl_sock_load_ocsp_response_from_file(const char *ocsp_path, struct b close(fd); fd = -1; + ret = 0; end: if (fd != -1) close(fd);