diff options
author | Rye <rye@lindenlab.com> | 2024-11-04 04:13:57 -0500 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-03-06 20:57:21 +0200 |
commit | b0bc83800ebf4a704edca63ab31feeb5b6fb4fc0 (patch) | |
tree | 61c860588e1ddf2f7841c3f0e43a18ae37ba7572 | |
parent | 9ce9f6c74147ea60a2fa20ba7573d2d30800fcc0 (diff) |
Fix crash from socket creation failure in media plugin system
-rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 7 |
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", |