summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-07 00:00:17 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-07 16:18:36 +0200
commitdc75ea9fc23413ce12d907e2c843b7b2c7b6324a (patch)
tree6980ecc0a7f49c4e22441e097771217b2faaadfd /Kernel/Syscalls
parent0db669a9d2d59ee70214c622384730a9d4eb4bfa (diff)
downloadserenity-dc75ea9fc23413ce12d907e2c843b7b2c7b6324a.zip
Kernel: Use Userspace<T> for the getpeername syscall
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r--Kernel/Syscalls/socket.cpp2
1 files changed, 1 insertions, 1 deletions
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<true>(params);
}
-int Process::sys$getpeername(const Syscall::SC_getpeername_params* user_params)
+int Process::sys$getpeername(Userspace<const Syscall::SC_getpeername_params*> user_params)
{
Syscall::SC_getpeername_params params;
if (!validate_read_and_copy_typed(&params, user_params))