Skip to content

Commit 64ba5d4

Browse files
committed
Merge branch 'PHP-7.2'
2 parents b35a64b + 2577cdb commit 64ba5d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ext/mysqlnd/mysqlnd_auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self
761761
DBG_INF_FMT("salt(%d)=[%.*s]", auth_plugin_data_len, auth_plugin_data_len, auth_plugin_data);
762762

763763

764-
if (conn->protocol_frame_codec->data->ssl) {
764+
if (conn->vio->data->ssl) {
765765
DBG_INF("simple clear text under SSL");
766766
/* clear text under SSL */
767767
*auth_data_len = passwd_len;

ext/mysqlnd/mysqlnd_vio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ MYSQLND_METHOD(mysqlnd_vio, enable_ssl)(MYSQLND_VIO * const net)
514514
zval cafile_zval;
515515
ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca);
516516
php_stream_context_set_option(context, "ssl", "cafile", &cafile_zval);
517+
zval_ptr_dtor(&cafile_zval);
517518
any_flag = TRUE;
518519
}
519520
if (net->data->options.ssl_capath) {

0 commit comments

Comments
 (0)