mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
Fix for the bug #1200: Can't start MySQL if bind-address set to hostname that starts with a number.
This commit is contained in:
parent
f434b329f5
commit
9de77cc983
1 changed files with 1 additions and 5 deletions
|
@ -5163,11 +5163,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
|
|||
my_use_symdir=0;
|
||||
break;
|
||||
case (int) OPT_BIND_ADDRESS:
|
||||
if (argument && my_isdigit(mysqld_charset, argument[0]))
|
||||
{
|
||||
my_bind_addr = (ulong) inet_addr(argument);
|
||||
}
|
||||
else
|
||||
if (!argument || (my_bind_addr= (ulong) inet_addr(argument)) == INADDR_NONE)
|
||||
{
|
||||
struct hostent *ent;
|
||||
if (argument || argument[0])
|
||||
|
|
Loading…
Reference in a new issue