don't close session if unknown command

This commit is contained in:
orignal 2014-12-05 10:59:37 -05:00
parent e84d4e5f42
commit 07d5e8c756

View File

@ -179,7 +179,10 @@ namespace client
if (it != handlers.end ())
(this->*(it->second))(operand, eol - operand);
else
{
LogPrint (eLogError, "BOB unknown command ", m_ReceiveBuffer);
SendReplyError ("unknown command");
}
m_ReceiveBufferOffset = size - (eol - m_ReceiveBuffer) - 1;
memmove (m_ReceiveBuffer, eol + 1, m_ReceiveBufferOffset);