This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
commit cae7e4646ec5c432c7c3626d37e01ab36ae8e128 Author: Mark Thomas <[email protected]> AuthorDate: Fri Dec 5 22:13:23 2025 +0000 Clear the error first to avoid false positives after the call --- native/src/sslconf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/native/src/sslconf.c b/native/src/sslconf.c index 02c3513b1..8285f7d30 100644 --- a/native/src/sslconf.c +++ b/native/src/sslconf.c @@ -298,6 +298,7 @@ TCN_IMPLEMENT_CALL(jint, SSLConf, finish)(TCN_STDARGS, jlong cctx) UNREFERENCED_STDARGS; TCN_ASSERT(c != 0); TCN_ASSERT(c->cctx != 0); + SSL_ERR_clear(); rc = SSL_CONF_CTX_finish(c->cctx); ec = SSL_ERR_get(); if (rc <= 0 || ec != 0) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
