mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 13:17:36 +00:00
Kernel: Don't VERIFY_NOT_REACHED in LocalSocket::has_attached_peer()
Invoking sendmsg on a listening socket triggers this assertion as sendto calls has_attached_peer before checking the result of send_buffer_for.
This commit is contained in:
parent
0dc6fe9102
commit
22ec21bd61
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ bool LocalSocket::has_attached_peer(const FileDescription& description) const
|
||||||
return m_connect_side_fd != nullptr;
|
return m_connect_side_fd != nullptr;
|
||||||
if (role == Role::Connected)
|
if (role == Role::Connected)
|
||||||
return m_accept_side_fd_open;
|
return m_accept_side_fd_open;
|
||||||
VERIFY_NOT_REACHED();
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LocalSocket::can_write(const FileDescription& description, size_t) const
|
bool LocalSocket::can_write(const FileDescription& description, size_t) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue