mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Kernel: Fix kernel crash when remote peer resets unexpectedly
This commit is contained in:
parent
15070b76b3
commit
a39ec19cd7
1 changed files with 0 additions and 2 deletions
|
@ -268,8 +268,6 @@ KResultOr<size_t> IPv4Socket::receive_byte_buffered(FileDescription& description
|
|||
}
|
||||
}
|
||||
|
||||
VERIFY(!m_receive_buffer.is_empty());
|
||||
|
||||
KResultOr<size_t> nreceived_or_error { 0 };
|
||||
if (flags & MSG_PEEK)
|
||||
nreceived_or_error = m_receive_buffer.peek(buffer, buffer_length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue