Fix implicit/explicit port in mysqlnd

This commit is contained in:
Kamil Tekiela 2023-03-24 13:52:20 +00:00
parent 6e3f93f2f8
commit c1103a9772
No known key found for this signature in database
GPG key ID: 0760BDAB1E89A1E3
5 changed files with 44 additions and 11 deletions

View file

@ -571,6 +571,8 @@ MYSQLND_METHOD(mysqlnd_command, enable_ssl)(MYSQLND_CONN_DATA * const conn, cons
conn->vio->data->m.set_client_option(conn->vio, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, (const char *) &verify);
if (FAIL == conn->vio->data->m.enable_ssl(conn->vio)) {
SET_CONNECTION_STATE(&conn->state, CONN_QUIT_SENT);
SET_CLIENT_ERROR(conn->error_info, CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, "Cannot connect to MySQL using SSL");
goto end;
}
}