Commit 8bd71ab1 authored by unknown's avatar unknown

A fix for --bind-address=hostname

parent 73b84706
...@@ -3543,7 +3543,6 @@ static void set_options(void) ...@@ -3543,7 +3543,6 @@ static void set_options(void)
#endif #endif
my_bind_addr = htonl( INADDR_ANY ); my_bind_addr = htonl( INADDR_ANY );
} }
/* Initiates DEBUG - but no debugging here ! */ /* Initiates DEBUG - but no debugging here ! */
static void get_options(int argc,char **argv) static void get_options(int argc,char **argv)
...@@ -3893,7 +3892,7 @@ static void get_options(int argc,char **argv) ...@@ -3893,7 +3892,7 @@ static void get_options(int argc,char **argv)
else else
{ {
struct hostent *ent; struct hostent *ent;
if (!optarg || !optarg[0]) if (optarg && optarg[0])
ent=gethostbyname(optarg); ent=gethostbyname(optarg);
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment