From ffebdee6426d8145b3aacd6274ca5e507103daab Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Jan 2006 13:58:28 +0400 Subject: Fix for bug #15756: incorrect ip address matching in ACL due to use of latin1 collation. Thanks Deomid Ryabkov 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. --- sql/hostname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/hostname.cc') 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); -- cgit v1.2.1