posix os_socket_inet_network: Use inet_addr instead of inet_network (#1133)
This commit is contained in:
@ -172,6 +172,7 @@ os_socket_inet_network(const char *cp, uint32 *out)
|
|||||||
if (!cp)
|
if (!cp)
|
||||||
return BHT_ERROR;
|
return BHT_ERROR;
|
||||||
|
|
||||||
*out = inet_network(cp);
|
/* Note: ntohl(INADDR_NONE) == INADDR_NONE */
|
||||||
|
*out = ntohl(inet_addr(cp));
|
||||||
return BHT_OK;
|
return BHT_OK;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user