(svn r19072) -Fix [FS#3599]: possible read/write after free when the client triggered the server to close the connection

This commit is contained in:
rubidium
2010-02-09 23:49:19 +00:00
parent 3c9c2f704f
commit ab35d95b5a
5 changed files with 126 additions and 130 deletions

View File

@@ -67,8 +67,7 @@ NetworkRecvStatus NetworkClientSocket::CloseConnection(bool error)
return NETWORK_RECV_STATUS_CONN_LOST;
}
NetworkCloseClient(this, error);
return NETWORK_RECV_STATUS_OKAY;
return NetworkCloseClient(this, error ? NETWORK_RECV_STATUS_SERVER_ERROR : NETWORK_RECV_STATUS_CONN_LOST);
}
#endif /* ENABLE_NETWORK */