mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-11 12:11:14 +00:00
posix os_socket_inet_network: Use inet_addr instead of inet_network (#1133)
This commit is contained in:
parent
d9d0777051
commit
2e27d506d8
|
@ -172,6 +172,7 @@ os_socket_inet_network(const char *cp, uint32 *out)
|
|||
if (!cp)
|
||||
return BHT_ERROR;
|
||||
|
||||
*out = inet_network(cp);
|
||||
/* Note: ntohl(INADDR_NONE) == INADDR_NONE */
|
||||
*out = ntohl(inet_addr(cp));
|
||||
return BHT_OK;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user