summaryrefslogtreecommitdiff
path: root/mysql-test/t/grant.test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-01-09 10:31:07 +0100
committerunknown <msvensson@neptunus.(none)>2006-01-09 10:31:07 +0100
commit16257e8b356c105fcc9fa8c8851338da60ece8f2 (patch)
tree788f8e7da96bac419a2f9810c1c6b3ffd55af3ca /mysql-test/t/grant.test
parentc2ac089167ac158aff1318cdb94c55a48fae34a5 (diff)
downloadmariadb-git-16257e8b356c105fcc9fa8c8851338da60ece8f2.tar.gz
Bug #15598 Server crashes in specific case during setting new password
- When acl_user->host.hostname is NULL compare it as "" mysql-test/r/grant.result: Test user with host '' mysql-test/t/grant.test: Test user with host '' sql/sql_acl.cc: If acl_user->host.hostname is NULL compare it as ""
Diffstat (limited to 'mysql-test/t/grant.test')
-rw-r--r--mysql-test/t/grant.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test
index 039e41dcf34..805fa881399 100644
--- a/mysql-test/t/grant.test
+++ b/mysql-test/t/grant.test
@@ -421,4 +421,16 @@ revoke all privileges on ÂÄ.* from root@localhost;
show grants for root@localhost;
set names latin1;
+#
+# Bug #15598 Server crashes in specific case during setting new password
+# - Caused by a user with host ''
+#
+insert into mysql.user (host, user) values ('', 'mysqltest_7');
+flush privileges;
+set password for mysqltest_7@ = password('systpass');
+show grants for mysqltest_7@;
+drop user mysqltest_7@;
+--error 1141
+show grants for mysqltest_7@;
+
# End of 4.1 tests