fixed #994. check if keys are set

This commit is contained in:
orignal 2017-11-10 09:49:50 -05:00
parent d14c6e2829
commit 2bc33f22df

View File

@ -448,7 +448,10 @@ namespace client
void BOBCommandSession::GetdestCommandHandler (const char * operand, size_t len)
{
LogPrint (eLogDebug, "BOB: getdest");
if (m_Keys.GetPublic ()) // keys are set ?
SendReplyOK (m_Keys.GetPublic ()->ToBase64 ().c_str ());
else
SendReplyError ("keys are not set");
}
void BOBCommandSession::OuthostCommandHandler (const char * operand, size_t len)