Fixed a possible race condition in cClientHandle's packet sending code; prepared for moving cSocket out of cClientHandle's ownership.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@832 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -1028,7 +1028,7 @@ int cProtocol125::ParseLogin(void)
|
||||
LOGWARNING("Login Username (\"%s\") does not match Handshake username (\"%s\") for client @ \"%s\", kicking",
|
||||
Username.c_str(),
|
||||
m_Username.c_str(),
|
||||
m_Client->GetSocket().GetIPString().c_str()
|
||||
m_Client->GetIPString().c_str()
|
||||
);
|
||||
m_Client->Kick("Hacked client"); // Don't tell them why we don't want them
|
||||
return PARSE_OK;
|
||||
|
||||
Reference in New Issue
Block a user