From dc75ea9fc23413ce12d907e2c843b7b2c7b6324a Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Fri, 7 Aug 2020 00:00:17 -0700 Subject: Kernel: Use Userspace for the getpeername syscall --- Kernel/Syscalls/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Syscalls') diff --git a/Kernel/Syscalls/socket.cpp b/Kernel/Syscalls/socket.cpp index 1aaae4e9f8..1ed6730d5b 100644 --- a/Kernel/Syscalls/socket.cpp +++ b/Kernel/Syscalls/socket.cpp @@ -308,7 +308,7 @@ int Process::sys$getsockname(const Syscall::SC_getsockname_params* user_params) return get_sock_or_peer_name(params); } -int Process::sys$getpeername(const Syscall::SC_getpeername_params* user_params) +int Process::sys$getpeername(Userspace user_params) { Syscall::SC_getpeername_params params; if (!validate_read_and_copy_typed(¶ms, user_params)) -- cgit v1.2.3