check for null before deferencing.
git-svn-id: svn://10.0.0.236/trunk@35317 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -786,6 +786,16 @@ void stub_abort(NET_StreamClass *stream, int status)
|
||||
|
||||
TRACEMSG(("+++ stream abort. Status = %d\n", status));
|
||||
|
||||
NS_ASSERTION(pConn, "pConn == nsnull");
|
||||
if (!pConn) {
|
||||
return;
|
||||
}
|
||||
|
||||
NS_ASSERTION(pConn->pNetStream, "pConn->pNetStream == nsnull");
|
||||
if (!pConn->pNetStream) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Close the stream and remove it from the ConnectionInfo... */
|
||||
pConn->pNetStream->Close();
|
||||
NS_RELEASE(pConn->pNetStream);
|
||||
|
||||
Reference in New Issue
Block a user