summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-21 16:33:09 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-21 16:33:09 +0200
commit51318d51a4836753ea61e595c8e845858569ddc4 (patch)
treefc46e63fa084613e9bf1386e0950a4ab45578a45 /Kernel/Syscalls
parent8d0bd3f225786c0ee36e0ec4297b8115290b709a (diff)
downloadserenity-51318d51a4836753ea61e595c8e845858569ddc4.zip
Kernel: Make Socket::bind() take credentials as input
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 f0491f1096..bd45d54e7b 100644
--- a/Kernel/Syscalls/socket.cpp
+++ b/Kernel/Syscalls/socket.cpp
@@ -56,7 +56,7 @@ ErrorOr<FlatPtr> Process::sys$bind(int sockfd, Userspace<sockaddr const*> addres
return ENOTSOCK;
auto& socket = *description->socket();
REQUIRE_PROMISE_FOR_SOCKET_DOMAIN(socket.domain());
- TRY(socket.bind(address, address_length));
+ TRY(socket.bind(credentials(), address, address_length));
return 0;
}