Fix crash from socket creation failure in media plugin system

master
Rye 2024-11-04 04:13:57 -05:00
parent 0fbc30df54
commit 465fbf6946
1 changed files with 6 additions and 1 deletions

View File

@ -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",