From 74b3d25bcf901d7a36ee3770a8ab8d6fd4e0558b Mon Sep 17 00:00:00 2001 From: Unbit Date: Wed, 6 Mar 2013 10:36:05 +0100 Subject: [PATCH] call ERR_clear_error after each https session close --- plugins/http/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/http/http.c b/plugins/http/http.c index c7a8d980..23b2993f 100644 --- a/plugins/http/http.c +++ b/plugins/http/http.c @@ -1125,6 +1125,8 @@ void hr_session_ssl_close(struct corerouter_session *cs) { X509_free(hs->ssl_client_cert); } + // clear the errors (otherwise they could be propagated) + ERR_clear_error(); SSL_free(hs->ssl); } #endif