diff options
| author | Laytan <laytanlaats@hotmail.com> | 2023-11-09 14:17:22 +0100 |
|---|---|---|
| committer | Laytan <laytanlaats@hotmail.com> | 2023-11-09 14:17:22 +0100 |
| commit | fc6edf65d7dfb24265eff84c22f3dd097e6569d6 (patch) | |
| tree | 52e029c8e07c915df3532c9c9ec5429e15fc21cc /core/sys/linux | |
| parent | 9834ceed429e5e682e9411fd5cf202bccc31c665 (diff) | |
fix linux.accept, addrlen should be a pointer to the length instead of the length itself
Diffstat (limited to 'core/sys/linux')
| -rw-r--r-- | core/sys/linux/sys.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 314591d06..e0e19056a 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -331,7 +331,8 @@ where T == Sock_Addr_In6 || T == Sock_Addr_Any { - ret := syscall(SYS_accept4, sock, addr, size_of(T), transmute(int) sockflags) + addr_len: i32 = size_of(T) + ret := syscall(SYS_accept4, sock, addr, &addr_len, transmute(int) sockflags) return errno_unwrap(ret, Fd) } |