mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +00:00
Kernel: Use Userspace<T> for the connect syscall
This commit is contained in:
parent
8bd9dbc220
commit
0e20a6df0a
2 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ int Process::sys$accept(int accepting_socket_fd, Userspace<sockaddr*> user_addre
|
|||
return accepted_socket_fd;
|
||||
}
|
||||
|
||||
int Process::sys$connect(int sockfd, const sockaddr* user_address, socklen_t user_address_size)
|
||||
int Process::sys$connect(int sockfd, Userspace<const sockaddr*> user_address, socklen_t user_address_size)
|
||||
{
|
||||
if (!validate_read(user_address, user_address_size))
|
||||
return -EFAULT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue