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.
This commit is contained in:
William Lallemand 2019-10-15 13:44:57 +02:00 committed by William Lallemand
parent 786188f6bf
commit e0f48ae976

View 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);