Commit 5412cb8f authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_udp_read_fn): Changed type of len from int to socklen_t.

(isc_mkudpaddress): Use inet_aton instead of inet_addr.
parent afb11314
......@@ -69,7 +69,7 @@ isc_udp_read_fn(IscHandlerList *UNUSED(hl),
{
IscMessage *msg;
struct sockaddr addr;
int len;
socklen_t len;
int status;
......@@ -170,9 +170,8 @@ isc_mkudpaddress(const char *address,
else if (isdigit((int)(unsigned char)address[0]))
{
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = inet_addr(address);
if (addr.sin_addr.s_addr == INADDR_NONE)
return NULL;
if (!inet_aton(address, &addr.sin_addr))
return NULL;
}
else if ((hp = gethostbyname(address)) == NULL)
return 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