Commit 3c132702 authored by unknown's avatar unknown

followup to SET PASSWORD fix

parent 12bdc04b
...@@ -1149,7 +1149,7 @@ bool check_change_password(THD *thd, const char *host, const char *user, ...@@ -1149,7 +1149,7 @@ bool check_change_password(THD *thd, const char *host, const char *user,
return(1); return(1);
} }
uint len=strlen(new_password); uint len=strlen(new_password);
if (len != SCRAMBLED_PASSWORD_CHAR_LENGTH && if (len && len != SCRAMBLED_PASSWORD_CHAR_LENGTH &&
len != SCRAMBLED_PASSWORD_CHAR_LENGTH_323) len != SCRAMBLED_PASSWORD_CHAR_LENGTH_323)
{ {
net_printf(thd, 0, 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