Skip to content

Commit 8c0a8f8

Browse files
authored
Merge pull request brianmario#1353 from flavorjones/flavorjones-fix-mysql-83-ssl
fix: mysql 8.3 ssl settings
2 parents 42ac528 + 1b40e54 commit 8c0a8f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/mysql2/client.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,19 +1444,19 @@ static VALUE set_ssl_options(VALUE self, VALUE key, VALUE cert, VALUE ca, VALUE
14441444
NIL_P(cipher) ? NULL : StringValueCStr(cipher));
14451445
#else
14461446
/* mysql 8.3 does not provide mysql_ssl_set */
1447-
if (NIL_P(key)) {
1447+
if (!NIL_P(key)) {
14481448
mysql_options(wrapper->client, MYSQL_OPT_SSL_KEY, StringValueCStr(key));
14491449
}
1450-
if (NIL_P(cert)) {
1450+
if (!NIL_P(cert)) {
14511451
mysql_options(wrapper->client, MYSQL_OPT_SSL_CERT, StringValueCStr(cert));
14521452
}
1453-
if (NIL_P(ca)) {
1453+
if (!NIL_P(ca)) {
14541454
mysql_options(wrapper->client, MYSQL_OPT_SSL_CA, StringValueCStr(ca));
14551455
}
1456-
if (NIL_P(capath)) {
1456+
if (!NIL_P(capath)) {
14571457
mysql_options(wrapper->client, MYSQL_OPT_SSL_CAPATH, StringValueCStr(capath));
14581458
}
1459-
if (NIL_P(cipher)) {
1459+
if (!NIL_P(cipher)) {
14601460
mysql_options(wrapper->client, MYSQL_OPT_SSL_CIPHER, StringValueCStr(cipher));
14611461
}
14621462
#endif

0 commit comments

Comments
 (0)