Skip to content

Commit eeba5a2

Browse files
committed
Fix logic error
1 parent 265fe88 commit eeba5a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/src/sslcontext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ TCN_IMPLEMENT_CALL(jboolean, SSLContext, setCipherSuitesEx)(TCN_STDARGS, jlong c
585585
goto free_cipherSuites;
586586
}
587587

588-
if (SSL_CTX_set_ciphersuites(c->ctx, J2S(cipherSuites))) {
588+
if (!SSL_CTX_set_ciphersuites(c->ctx, J2S(cipherSuites))) {
589589
char err[TCN_OPENSSL_ERROR_STRING_LENGTH];
590590
ERR_error_string_n(SSL_ERR_get(), err, TCN_OPENSSL_ERROR_STRING_LENGTH);
591591
tcn_Throw(e, "Unable to configure permitted SSL cipher suites (%s)", err);

0 commit comments

Comments
 (0)