mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Engine: fix uncontrolled format string vulnerability
This code is only ever used by the master server, but we should still avoid uncontrolled format strings from anything providing it remotely.
This commit is contained in:
parent
1e1fe1beff
commit
3c30d959dd
@ -39,7 +39,7 @@ void SV_CheckForBanAndDisconnect(CClient* const pClient, const string& svIPAddr,
|
|||||||
{
|
{
|
||||||
const int nUserID = pClient->GetUserID();
|
const int nUserID = pClient->GetUserID();
|
||||||
|
|
||||||
pClient->Disconnect(Reputation_t::REP_MARK_BAD, svError.c_str());
|
pClient->Disconnect(Reputation_t::REP_MARK_BAD, "%s", svError.c_str());
|
||||||
Warning(eDLL_T::SERVER, "Removed client '[%s]:%i' from slot #%i ('%llu' is banned globally!)\n",
|
Warning(eDLL_T::SERVER, "Removed client '[%s]:%i' from slot #%i ('%llu' is banned globally!)\n",
|
||||||
svIPAddr.c_str(), nPort, nUserID, nNucleusID);
|
svIPAddr.c_str(), nPort, nUserID, nNucleusID);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user