From c10daa853085a4b4abf0cc202ea6070a2a110ace Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 24 Nov 2013 14:29:15 +0100 Subject: RCON server: Login failure gets sent to the client. --- source/RCONServer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/RCONServer.cpp b/source/RCONServer.cpp index 93f2ccdd3..3f86a7ca2 100644 --- a/source/RCONServer.cpp +++ b/source/RCONServer.cpp @@ -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) { LOGINFO("RCON: Invalid password from client %s, dropping connection.", m_IPAddress.c_str()); + SendResponse(-1, RCON_PACKET_RESPONSE, 0, NULL); return false; } m_IsAuthenticated = true; -- cgit v1.2.3