Permalink
Browse files

Fix potential crash in network code.

Found by Coverity scan.
  • Loading branch information...
perim committed Jan 9, 2018
1 parent be03e18 commit 241a287050e9ce27197c70806e06facf135093ab
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/netplay/netplay.cpp
View
@@ -2205,6 +2205,7 @@ static void NETregisterServer(int state)
socketClose(rs_socket);
server_not_there = true;
rs_socket = nullptr;
return;
}
if (readLobbyResponse(rs_socket, NET_TIMEOUT_DELAY) == SOCKET_ERROR)

0 comments on commit 241a287

Please sign in to comment.