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
@ -5163,11 +5163,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
|
|||||||
my_use_symdir=0;
|
my_use_symdir=0;
|
||||||
break;
|
break;
|
||||||
case (int) OPT_BIND_ADDRESS:
|
case (int) OPT_BIND_ADDRESS:
|
||||||
if (argument && my_isdigit(mysqld_charset, argument[0]))
|
if (!argument || (my_bind_addr= (ulong) inet_addr(argument)) == INADDR_NONE)
|
||||||
{
|
|
||||||
my_bind_addr = (ulong) inet_addr(argument);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
struct hostent *ent;
|
struct hostent *ent;
|
||||||
if (argument || argument[0])
|
if (argument || argument[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user