]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: can't load ocsp files
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 15 Oct 2019 11:44:57 +0000 (13:44 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 15 Oct 2019 11:50:20 +0000 (13:50 +0200)
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

index 1a48e2a392bc9b3b5ab4555e584b59ac283acdf3..1143065eca5353950961b031112558da4d593025 100644 (file)
@@ -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);