(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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user