diff options
author | Andreas Kling <kling@serenityos.org> | 2022-08-21 16:33:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-21 16:33:09 +0200 |
commit | 51318d51a4836753ea61e595c8e845858569ddc4 (patch) | |
tree | fc46e63fa084613e9bf1386e0950a4ab45578a45 /Kernel/Syscalls | |
parent | 8d0bd3f225786c0ee36e0ec4297b8115290b709a (diff) | |
download | serenity-51318d51a4836753ea61e595c8e845858569ddc4.zip |
Kernel: Make Socket::bind() take credentials as input
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/socket.cpp | 2 |
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; } |