diff options
author | Rye <rye@lindenlab.com> | 2024-11-04 04:13:57 -0500 |
---|---|---|
committer | Rye <rye@lindenlab.com> | 2024-11-04 04:13:57 -0500 |
commit | 1fb34c370f1ac25794aee31443f9077cc8c0d22c (patch) | |
tree | bdf74cfadd12c2ff72a26fb65cce59aaa3a680d1 /indra | |
parent | eee46669d89385745037e9ad4bfb1c27a2597fa2 (diff) |
Fix crash from socket creation failure in media plugin system
Diffstat (limited to 'indra')
-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 b838e05560..a79774e900 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", |