1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:38:12 +00:00

Kernel: Make Socket::bind() take credentials as input

This commit is contained in:
Andreas Kling 2022-08-21 16:33:09 +02:00
parent 8d0bd3f225
commit 51318d51a4
6 changed files with 9 additions and 9 deletions

View file

@ -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;
}