Commit 6a504e5
authored
Fix sock_connect using wrong rights constant (#4849)
wasi_ssp_sock_connect checks __WASI_RIGHT_SOCK_BIND instead of
__WASI_RIGHT_SOCK_CONNECT when validating file descriptor rights.
This was a copy-paste error from wasi_ssp_sock_bind. As a result,
connect operations check the wrong capability.1 parent 9143b1a commit 6a504e5
File tree
1 file changed
+1
-1
lines changed- core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2585 | 2585 | | |
2586 | 2586 | | |
2587 | 2587 | | |
2588 | | - | |
| 2588 | + | |
2589 | 2589 | | |
2590 | 2590 | | |
2591 | 2591 | | |
| |||
0 commit comments