mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
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.
This commit is contained in:
parent
736f9c09d7
commit
ffebdee642
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue