You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2025/12/05 22:13:43 UTC
(tomcat-native) 02/02: Clear the error first to avoid false positives after the call
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 <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org