diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index 70ab9d7b3c..5a38760c68 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -466,7 +466,8 @@ KResult LocalSocket::sendfd(const FileDescription& socket_description, FileDescr // FIXME: Figure out how we should limit this properly. if (queue.size() > 128) return EBUSY; - queue.append(move(passing_description)); + if (!queue.try_append(move(passing_description))) + return ENOMEM; return KSuccess; }