From 22ec21bd618890730d21ecd3840a7f2a72b6c1ce Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Tue, 31 Aug 2021 13:34:35 +0100 Subject: 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. --- Kernel/Net/LocalSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Net/LocalSocket.cpp') 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 -- cgit v1.2.3