From 08cc2f02fed12e02972874ec5437dfb86bb3e46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sun, 14 May 2023 14:30:33 +0000 Subject: [PATCH] Fixed length of hash + salt --- lib/MySQL_Protocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Protocol.cpp b/lib/MySQL_Protocol.cpp index 76463360d..23295ab8e 100644 --- a/lib/MySQL_Protocol.cpp +++ b/lib/MySQL_Protocol.cpp @@ -2461,7 +2461,7 @@ __do_auth: if ( auth_plugin_id == AUTH_MYSQL_CACHING_SHA2_PASSWORD && - strlen(vars1.password) > 60 + strlen(vars1.password) == 70 && strncasecmp(vars1.password,"$A$0",4)==0 ) {