This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 1.3.x
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/1.3.x by this push:
new 95943c88c Clear the error first to avoid false positives after the call
95943c88c is described below
commit 95943c88c9ea08ad0cadf1eb92283945eaa286b5
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 603e84288..2c8a41254 100644
--- a/native/src/sslconf.c
+++ b/native/src/sslconf.c
@@ -300,6 +300,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]