mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
don't close session if unknown command
This commit is contained in:
3
BOB.cpp
3
BOB.cpp
@@ -179,7 +179,10 @@ namespace client
|
|||||||
if (it != handlers.end ())
|
if (it != handlers.end ())
|
||||||
(this->*(it->second))(operand, eol - operand);
|
(this->*(it->second))(operand, eol - operand);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
LogPrint (eLogError, "BOB unknown command ", m_ReceiveBuffer);
|
LogPrint (eLogError, "BOB unknown command ", m_ReceiveBuffer);
|
||||||
|
SendReplyError ("unknown command");
|
||||||
|
}
|
||||||
|
|
||||||
m_ReceiveBufferOffset = size - (eol - m_ReceiveBuffer) - 1;
|
m_ReceiveBufferOffset = size - (eol - m_ReceiveBuffer) - 1;
|
||||||
memmove (m_ReceiveBuffer, eol + 1, m_ReceiveBufferOffset);
|
memmove (m_ReceiveBuffer, eol + 1, m_ReceiveBufferOffset);
|
||||||
|
|||||||
Reference in New Issue
Block a user