mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Move latin1 into a separarte file
This commit is contained in:
@ -221,10 +221,10 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors)
|
||||
|
||||
/* Don't accept hostnames that starts with digits because they may be
|
||||
false ip:s */
|
||||
if (my_isdigit(my_charset_latin1,name[0]))
|
||||
if (my_isdigit(&my_charset_latin1,name[0]))
|
||||
{
|
||||
char *pos;
|
||||
for (pos= name+1 ; my_isdigit(my_charset_latin1,*pos); pos++) ;
|
||||
for (pos= name+1 ; my_isdigit(&my_charset_latin1,*pos); pos++) ;
|
||||
if (*pos == '.')
|
||||
{
|
||||
DBUG_PRINT("error",("mysqld doesn't accept hostnames that starts with a number followed by a '.'"));
|
||||
|
Reference in New Issue
Block a user