Kernel: Fix kernel crash when remote peer resets unexpectedly

This commit is contained in:
ngc6302h
2021-07-07 00:02:34 +02:00
committed by Andreas Kling
parent 15070b76b3
commit a39ec19cd7

View File

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