Tue, 27 Dec 2011 12:35:41 +0100
Possible crash fix in LLSocket via Henri Beauchamp (Cool VL)
indra/llmessage/lliosocket.cpp | file | annotate | diff | revisions |
1.1 --- a/indra/llmessage/lliosocket.cpp Tue Dec 27 12:34:44 2011 +0100 1.2 +++ b/indra/llmessage/lliosocket.cpp Tue Dec 27 12:35:41 2011 +0100 1.3 @@ -186,7 +186,7 @@ 1.4 LLSocket::ptr_t LLSocket::create(apr_status_t& status, LLSocket::ptr_t& listen_socket) 1.5 { 1.6 LLMemType m1(LLMemType::MTYPE_IO_TCP); 1.7 - if (!listen_socket->getSocket()) 1.8 + if (!listen_socket || !listen_socket->getSocket()) 1.9 { 1.10 status = APR_ENOSOCKET; 1.11 return LLSocket::ptr_t();