Skip to content

Commit d827cb4

Browse files
committed
Fix server crash on info request with invalid token
1 parent c56fa9e commit d827cb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/engine/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ void CServer::PumpNetwork()
11681168
CUnpacker Unpacker;
11691169
Unpacker.Reset((unsigned char*)Packet.m_pData+sizeof(SERVERBROWSE_GETINFO), Packet.m_DataSize-sizeof(SERVERBROWSE_GETINFO));
11701170
int SrvBrwsToken = Unpacker.GetInt();
1171-
if(Unpacker.Error())
1171+
if(Unpacker.Error() || SrvBrwsToken < 0)
11721172
continue;
11731173

11741174
CPacker Packer;

0 commit comments

Comments
 (0)