summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-24 14:29:15 +0100
committermadmaxoft <github@xoft.cz>2013-11-24 14:29:15 +0100
commitc10daa853085a4b4abf0cc202ea6070a2a110ace (patch)
treea3c908be3a7509928f9f97c3e2cc3c3525acbdad
parentFixed socket connection startup. (diff)
downloadcuberite-c10daa853085a4b4abf0cc202ea6070a2a110ace.tar
cuberite-c10daa853085a4b4abf0cc202ea6070a2a110ace.tar.gz
cuberite-c10daa853085a4b4abf0cc202ea6070a2a110ace.tar.bz2
cuberite-c10daa853085a4b4abf0cc202ea6070a2a110ace.tar.lz
cuberite-c10daa853085a4b4abf0cc202ea6070a2a110ace.tar.xz
cuberite-c10daa853085a4b4abf0cc202ea6070a2a110ace.tar.zst
cuberite-c10daa853085a4b4abf0cc202ea6070a2a110ace.zip
Diffstat (limited to '')
-rw-r--r--source/RCONServer.cpp1
1 files changed, 1 insertions, 0 deletions
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;