From e0f48ae976cb4774537ce46a1fa35d8cdbc64928 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 15 Oct 2019 13:44:57 +0200 Subject: [PATCH] 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. --- src/ssl_sock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 1a48e2a39..1143065ec 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);