Commit 0766243b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_mkudpaddress): Use INADDR_NONE instead of -1.

parent 541f6a4b
...@@ -171,7 +171,7 @@ isc_mkudpaddress(const char *address, ...@@ -171,7 +171,7 @@ isc_mkudpaddress(const char *address,
{ {
addr.sin_family = AF_INET; addr.sin_family = AF_INET;
addr.sin_addr.s_addr = inet_addr(address); 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; return NULL;
} }
else if ((hp = gethostbyname(address)) == 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