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
The following commit(s) were added to refs/heads/main by this push:
new eeba5a24c Fix logic error
eeba5a24c is described below
commit eeba5a24c0f387a3fdf6d04ae9084b2e77fbeb51
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jan 5 16:58:49 2026 +0000
Fix logic error
---
native/src/sslcontext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 5866e60d2..87c3312b8 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -585,7 +585,7 @@ TCN_IMPLEMENT_CALL(jboolean, SSLContext,
setCipherSuitesEx)(TCN_STDARGS, jlong c
goto free_cipherSuites;
}
- if (SSL_CTX_set_ciphersuites(c->ctx, J2S(cipherSuites))) {
+ if (!SSL_CTX_set_ciphersuites(c->ctx, J2S(cipherSuites))) {
char err[TCN_OPENSSL_ERROR_STRING_LENGTH];
ERR_error_string_n(SSL_ERR_get(), err,
TCN_OPENSSL_ERROR_STRING_LENGTH);
tcn_Throw(e, "Unable to configure permitted SSL cipher suites (%s)",
err);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]