Commit 2f499fa3 authored by unknown's avatar unknown

followup to SET PASSWORD fix

parent a6e04fb5
......@@ -1149,7 +1149,7 @@ bool check_change_password(THD *thd, const char *host, const char *user,
return(1);
}
uint len=strlen(new_password);
if (len != SCRAMBLED_PASSWORD_CHAR_LENGTH &&
if (len && len != SCRAMBLED_PASSWORD_CHAR_LENGTH &&
len != SCRAMBLED_PASSWORD_CHAR_LENGTH_323)
{
net_printf(thd, 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment