mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
Fix bug for IPv4 in sock_open
(#1446)
This commit is contained in:
parent
0ffac101a1
commit
df782c5f2a
|
@ -3130,7 +3130,7 @@ wasi_ssp_sock_open(
|
|||
{
|
||||
bh_socket_t sock;
|
||||
bool is_tcp = SOCKET_DGRAM == socktype ? false : true;
|
||||
bool is_ipv4 = INET6 ? false : true;
|
||||
bool is_ipv4 = INET6 == af ? false : true;
|
||||
int ret;
|
||||
__wasi_filetype_t wasi_type;
|
||||
__wasi_rights_t max_base, max_inheriting;
|
||||
|
|
Loading…
Reference in New Issue
Block a user