mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-27 09:04:15 +00:00
don't close session if unknown command
This commit is contained in:
parent
e84d4e5f42
commit
07d5e8c756
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user