summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2006-01-24 13:58:28 +0400
committerunknown <ramil@mysql.com>2006-01-24 13:58:28 +0400
commitffebdee6426d8145b3aacd6274ca5e507103daab (patch)
tree46620db98ae05a953fb76e8b1f19c69649bb1be8 /sql/hostname.cc
parent736f9c09d7bddcdb0afad6a44109fda21df57b1c (diff)
downloadmariadb-git-ffebdee6426d8145b3aacd6274ca5e507103daab.tar.gz
Fix for bug #15756: incorrect ip address matching in ACL due to use of latin1 collation.
Thanks Deomid Ryabkov <mysqlbugs@rojer.pp.ru> for the great help! sql/hostname.cc: Fix for bug #15756: incorrect ip address matching in ACL due to use of latin1 collation. - use my_charset_bin instead of my_charset_latin1 to properly compare IP addresses.
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r--sql/hostname.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc
index 32e1d84fac3..32c4bb8533d 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -61,7 +61,7 @@ bool hostname_cache_init()
if (!(hostname_cache=new hash_filo(HOST_CACHE_SIZE, offset,
sizeof(struct in_addr),NULL,
(hash_free_key) free,
- &my_charset_latin1)))
+ &my_charset_bin)))
return 1;
hostname_cache->clear();
(void) pthread_mutex_init(&LOCK_hostname,MY_MUTEX_INIT_SLOW);