Skip to content
Permalink
Browse files

fixed caching_sha2_password behaviour when SSL is enabled

  • Loading branch information
yurriy committed Sep 9, 2019
1 parent de57d6a commit 538da15b4dad3f17a1b5dd891f9a75230275e8f6
Showing with 0 additions and 8 deletions.
  1. +0 −8 plugins/auth/caching_sha2_pw.c
@@ -275,14 +275,6 @@ static int auth_caching_sha2_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
memmove(mysql->scramble_buff, packet, SCRAMBLE_LENGTH);
mysql->scramble_buff[SCRAMBLE_LENGTH]= 0;

/* if a tls session is active we need to send plain password */
if (mysql->client_flag & CLIENT_SSL)
{
if (vio->write_packet(vio, (unsigned char *)mysql->passwd, (int)strlen(mysql->passwd) + 1))
return CR_ERROR;
return CR_OK;
}

/* send empty packet if no password was provided */
if (!mysql->passwd || !mysql->passwd[0])
{

0 comments on commit 538da15

Please sign in to comment.
You can’t perform that action at this time.