mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 23:25:45 +03:00
Fix crash in ProcessStringCmd (#838)
This commit is contained in:
parent
0c47c1c28b
commit
05c7601f1e
@ -86,6 +86,11 @@ bool ProxyClient::ProcessStringCmd(char *string)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!cmdLine.CountToken()) {
|
||||
m_System->DPrintf("WARNING! ProxyClient::ProcessStringCmd: invalid command string.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
char *cmd = cmdLine.GetToken(0);
|
||||
for (auto& local_cmd : m_LocalCmdReg)
|
||||
{
|
||||
|
@ -266,6 +266,11 @@ bool BaseClient::ProcessStringCmd(char *string)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!cmdLine.CountToken()) {
|
||||
m_System->DPrintf("WARNING! BaseClient::ProcessStringCmd: invalid command string.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
char *cmd = cmdLine.GetToken(0);
|
||||
for (auto& local_cmd : m_LocalCmdReg)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user