summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRye <rye@lindenlab.com>2024-11-04 04:13:57 -0500
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-03-06 20:57:21 +0200
commitb0bc83800ebf4a704edca63ab31feeb5b6fb4fc0 (patch)
tree61c860588e1ddf2f7841c3f0e43a18ae37ba7572
parent9ce9f6c74147ea60a2fa20ba7573d2d30800fcc0 (diff)
Fix crash from socket creation failure in media plugin system
-rw-r--r--indra/llplugin/llpluginprocessparent.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp
index 908f3c8ff5..19a0ce639a 100644
--- a/indra/llplugin/llpluginprocessparent.cpp
+++ b/indra/llplugin/llpluginprocessparent.cpp
@@ -400,9 +400,14 @@ 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.
-
status = apr_sockaddr_info_get(
&addr,
"127.0.0.1",