mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Allow negative value for backlog in sys$listen
This commit is contained in:
parent
a6fde58682
commit
6d31d81309
Notes:
sideshowbarker
2024-07-17 02:57:43 +09:00
Author: https://github.com/romch007 Commit: https://github.com/SerenityOS/serenity/commit/6d31d81309 Pull-request: https://github.com/SerenityOS/serenity/pull/21772
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ ErrorOr<FlatPtr> Process::sys$listen(int sockfd, int backlog)
|
|||
{
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
if (backlog < 0)
|
||||
return EINVAL;
|
||||
backlog = 0;
|
||||
auto description = TRY(open_file_description(sockfd));
|
||||
if (!description->is_socket())
|
||||
return ENOTSOCK;
|
||||
|
|
Loading…
Reference in a new issue