summaryrefslogtreecommitdiff
blob: 9092743dda7680b76b684f63283d8de32f76f19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nru mysql-4.0.14.orig/sql/sql_acl.cc mysql-4.0.14/sql/sql_acl.cc
--- mysql-4.0.14.orig/sql/sql_acl.cc	2003-09-10 20:53:06.000000000 -0400
+++ mysql-4.0.14/sql/sql_acl.cc	2003-09-10 20:54:41.000000000 -0400
@@ -233,7 +233,7 @@
 		      "Found old style password for user '%s'. Ignoring user. (You may want to restart mysqld using --old-protocol)",
 		      user.user ? user.user : ""); /* purecov: tested */
     }
-    else if (length % 8)		// This holds true for passwords
+    else if (length % 8 || length > 16)		// This holds true for passwords
     {
       sql_print_error(
 		      "Found invalid password for user: '%s@%s'; Ignoring user",