Skip to content

Commit 3df7287

Browse files
committed
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
1 parent 1db6c3a commit 3df7287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_acl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13583,7 +13583,7 @@ static int old_password_authenticate(MYSQL_PLUGIN_VIO *vio,
1358313583
pkt_len= (int)strnlen((char*)pkt, pkt_len);
1358413584

1358513585
if (pkt_len == 0) /* no password */
13586-
return info->auth_string[0] ? CR_AUTH_USER_CREDENTIALS : CR_OK;
13586+
return info->auth_string_length ? CR_AUTH_USER_CREDENTIALS : CR_OK;
1358713587

1358813588
if (secure_auth(thd))
1358913589
return CR_AUTH_HANDSHAKE;

0 commit comments

Comments
 (0)