From 3df7287d213c08eb519c0799a32f1880c7146e8a Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 28 Nov 2018 12:20:37 +0100 Subject: [PATCH] fix the test for the empty password hash string because the first byte of a _binary hash_ can be 0x00 too. This fixes main.connect test on centos73-ppc64 --- sql/sql_acl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 3c8eceed7d4..223733159da 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -13583,7 +13583,7 @@ static int old_password_authenticate(MYSQL_PLUGIN_VIO *vio, pkt_len= (int)strnlen((char*)pkt, pkt_len); if (pkt_len == 0) /* no password */ - return info->auth_string[0] ? CR_AUTH_USER_CREDENTIALS : CR_OK; + return info->auth_string_length ? CR_AUTH_USER_CREDENTIALS : CR_OK; if (secure_auth(thd)) return CR_AUTH_HANDSHAKE;