diff options
author | Owen Smith <yeeetari@gmail.com> | 2021-08-31 13:34:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-31 16:00:53 +0200 |
commit | 22ec21bd618890730d21ecd3840a7f2a72b6c1ce (patch) | |
tree | d0031eac95f1932573ac7959dbf7be7d536425a9 /Kernel/Net/LocalSocket.cpp | |
parent | 0dc6fe910220bf1aa7b831956228a2d7345c4990 (diff) | |
download | serenity-22ec21bd618890730d21ecd3840a7f2a72b6c1ce.zip |
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.
Diffstat (limited to 'Kernel/Net/LocalSocket.cpp')
-rw-r--r-- | Kernel/Net/LocalSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index 5e222c33d7..e8da313f0f 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -297,7 +297,7 @@ bool LocalSocket::has_attached_peer(const FileDescription& description) const return m_connect_side_fd != nullptr; if (role == Role::Connected) return m_accept_side_fd_open; - VERIFY_NOT_REACHED(); + return false; } bool LocalSocket::can_write(const FileDescription& description, size_t) const |