diff --git a/src/ssl_sock.c b/src/ssl_sock.c index a0bea5955..813b59921 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -2607,6 +2607,8 @@ end: if (in) BIO_free(in); + ERR_clear_error(); + return dh; }