Skip to content

Commit 1fb34c3

Browse files
author
Rye
committed
Fix crash from socket creation failure in media plugin system
1 parent eee4666 commit 1fb34c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

indra/llplugin/llpluginprocessparent.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,14 @@ void LLPluginProcessParent::idle(void)
400400
apr_sockaddr_t* addr = NULL;
401401
mListenSocket = LLSocket::create(gAPRPoolp, LLSocket::STREAM_TCP);
402402
mBoundPort = 0;
403+
if (!mListenSocket)
404+
{
405+
killSockets();
406+
errorState();
407+
break;
408+
}
403409

404410
// This code is based on parts of LLSocket::create() in lliosocket.cpp.
405-
406411
status = apr_sockaddr_info_get(
407412
&addr,
408413
"127.0.0.1",

0 commit comments

Comments
 (0)