Commit 754852f1 authored by Per Cederqvist's avatar Per Cederqvist

(isc_mkudpaddress): Declare error_num if USE_GETIPNODEBYNAME is

	defined.  Test USE_GETIPNODEBYNAME instead of
	HAVE_GETIPNODEBYNAME to determine if it should be used.  Don't
	access AF_INET6 unless USE_INET6 is true.
parent 485b8dcb
......@@ -152,6 +152,9 @@ isc_mkudpaddress(const char *address,
union sockaddrs addr;
struct hostent *hp;
struct servent *sp;
int error_num;
memset(&addr, 0, sizeof(addr));
......@@ -164,9 +167,11 @@ isc_mkudpaddress(const char *address,
else if (strcmp(address, "*") == 0)
#ifdef USE_INET6
/* Broadcast address, no IPv6 support for now */
if (address_family == AF_INET6)
return NULL;
#endif = AF_INET;
addr.sa_in.sin_addr.s_addr = htonl(INADDR_BROADCAST);
......@@ -193,7 +198,7 @@ isc_mkudpaddress(const char *address,
return NULL;
else if ((hp = getipnodebyname(address,
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