From 07d5e8c7569e1b09f7a7d25d5667ec90b2569d14 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 5 Dec 2014 10:59:37 -0500 Subject: [PATCH] don't close session if unknown command --- BOB.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BOB.cpp b/BOB.cpp index 3967975a..91d967e2 100644 --- a/BOB.cpp +++ b/BOB.cpp @@ -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);