From 2d3879578f0d6494e3a7ebc8ed6777e202823a02 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sun, 10 Oct 2021 07:02:33 -0400 Subject: [PATCH] Fix a small crash in SLPlugin --- indra/llplugin/llpluginprocessparent.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index 55e67715d93..eaf7cebef61 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -378,6 +378,12 @@ void LLPluginProcessParent::idle(void) apr_sockaddr_t* addr = NULL; mListenSocket = LLSocket::create(gAPRPoolp, LLSocket::STREAM_TCP); mBoundPort = 0; + if (!mListenSocket) + { + killSockets(); + errorState(); + break; + } // This code is based on parts of LLSocket::create() in lliosocket.cpp. -- GitLab