1
0

RCON server: Login failure gets sent to the client.

This commit is contained in:
madmaxoft 2013-11-24 14:29:15 +01:00
parent 1f8399fae5
commit c10daa8530

View File

@ -241,6 +241,7 @@ bool cRCONServer::cConnection::ProcessPacket(int a_RequestID, int a_PacketType,
if (strncmp(a_Payload, m_RCONServer.m_Password.c_str(), a_PayloadLength) != 0) if (strncmp(a_Payload, m_RCONServer.m_Password.c_str(), a_PayloadLength) != 0)
{ {
LOGINFO("RCON: Invalid password from client %s, dropping connection.", m_IPAddress.c_str()); LOGINFO("RCON: Invalid password from client %s, dropping connection.", m_IPAddress.c_str());
SendResponse(-1, RCON_PACKET_RESPONSE, 0, NULL);
return false; return false;
} }
m_IsAuthenticated = true; m_IsAuthenticated = true;