Fix a memleak with mysqlnd and SSL

This commit is contained in:
Johannes Schlüter 2018-02-20 23:28:23 +01:00
parent e3cf72b829
commit 74ed42c169
3 changed files with 6 additions and 1 deletions

View file

@ -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;