diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 91a15af72..f947c9965 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -478,6 +478,8 @@ static int ssl_sock_load_ocsp_response(struct chunk *ocsp_response, struct certi ret = 0; out: + ERR_clear_error(); + if (bs) OCSP_BASICRESP_free(bs);