mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
4.1 -> 5.0 merge
This commit is contained in:
@@ -2258,7 +2258,10 @@ static GRANT_NAME *name_hash_search(HASH *name_hash,
|
||||
{
|
||||
if (exact)
|
||||
{
|
||||
if (compare_hostname(&grant_name->host, host, ip))
|
||||
if ((host &&
|
||||
!my_strcasecmp(system_charset_info, host,
|
||||
grant_name->host.hostname)) ||
|
||||
(ip && !strcmp(ip, grant_name->host.hostname)))
|
||||
return grant_name;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user