mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 19:19:44 +03:00
Kernel: Fix kernel crash when remote peer resets unexpectedly
This commit is contained in:
parent
15070b76b3
commit
a39ec19cd7
Notes:
sideshowbarker
2024-07-18 10:16:07 +09:00
Author: https://github.com/ngc6302h Commit: https://github.com/SerenityOS/serenity/commit/a39ec19cd75 Pull-request: https://github.com/SerenityOS/serenity/pull/8513
@ -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…
Reference in New Issue
Block a user