summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_auth.c
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2018-02-20 23:28:23 +0100
committerJohannes Schlüter <johannes@php.net>2018-02-20 23:28:23 +0100
commit74ed42c169be06f6431cf8f5a0be149f413dc575 (patch)
treeab94f7a91f57fc6888aac116d595c22e074aa7b1 /ext/mysqlnd/mysqlnd_auth.c
parente3cf72b8292ce5250245cc365725e6e88941eb78 (diff)
downloadphp-git-74ed42c169be06f6431cf8f5a0be149f413dc575.tar.gz
Fix a memleak with mysqlnd and SSL
Diffstat (limited to 'ext/mysqlnd/mysqlnd_auth.c')
-rw-r--r--ext/mysqlnd/mysqlnd_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_auth.c b/ext/mysqlnd/mysqlnd_auth.c
index 98366d0e87..3ba447cfdf 100644
--- a/ext/mysqlnd/mysqlnd_auth.c
+++ b/ext/mysqlnd/mysqlnd_auth.c
@@ -787,7 +787,7 @@ mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self
DBG_INF_FMT("salt(%d)=[%.*s]", auth_plugin_data_len, auth_plugin_data_len, auth_plugin_data);
- if (conn->protocol_frame_codec->data->ssl) {
+ if (conn->vio->data->ssl) {
DBG_INF("simple clear text under SSL");
/* clear text under SSL */
*auth_data_len = passwd_len;