diff options
author | unknown <ram@mysql.r18.ru> | 2003-09-11 13:50:18 +0500 |
---|---|---|
committer | unknown <ram@mysql.r18.ru> | 2003-09-11 13:50:18 +0500 |
commit | 07bc35e1d024e5e3b81b131a47878510f0521609 (patch) | |
tree | 0f1aa34ca72fbd358501b7504a8a1974a05120c1 /sql/mysqld.cc | |
parent | d6f15e9d02d7fb33627c937ff47c948dd9ae0b2e (diff) | |
download | mariadb-git-07bc35e1d024e5e3b81b131a47878510f0521609.tar.gz |
Fix for the bug #1200: Can't start MySQL if bind-address set to hostname that starts with a number.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 80096e5d5e6..2d82454ad6d 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -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]) |