Fix crash (buffer overflow) in case of socket error
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3474
This commit is contained in:
parent
772513020f
commit
a9733cefaf
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ bool TCPClientSocket::GetRemoteAddressString(Bit8u* buffer) {
|
|||
bool TCPClientSocket::ReceiveArray(Bit8u* data, Bitu* size) {
|
||||
if(SDLNet_CheckSockets(listensocketset,0))
|
||||
{
|
||||
Bitu retval = SDLNet_TCP_Recv(mysock, data, *size);
|
||||
Bits retval = SDLNet_TCP_Recv(mysock, data, *size);
|
||||
if(retval<1) {
|
||||
isopen=false;
|
||||
*size=0;
|
||||
|
|
Loading…
Add table
Reference in a new issue