Fixed minor discrepancies

This commit is contained in:
Alexey Milovidov 2019-08-05 19:05:37 +03:00
parent 95532f2d31
commit a19d05d6df

View File

@ -299,7 +299,7 @@ void MySQLHandler::authenticate(const HandshakeResponse & handshake_response, co
}
password.resize(plaintext_size);
for (int i = 0; i < plaintext_size; i++)
for (int i = 0; i < plaintext_size; ++i)
{
password[i] = plaintext[i] ^ static_cast<unsigned char>(scramble[i % scramble.size()]);
}