Commit 541f6a4b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_mktcpaddress): Use INADDR_NONE instead of -1.

parent 0dd02e78
......@@ -153,7 +153,7 @@ isc_mktcpaddress(const char *address,
{
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = inet_addr(address);
if (addr.sin_addr.s_addr == -1)
if (addr.sin_addr.s_addr == INADDR_NONE)
return NULL;
}
else if ((hp = gethostbyname(address)) == NULL)
......
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