mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix implicit/explicit port in mysqlnd
This commit is contained in:
parent
6e3f93f2f8
commit
c1103a9772
5 changed files with 44 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue