Browse Source

fixed #994. check if keys are set

pull/996/head
orignal 7 years ago
parent
commit
2bc33f22df
  1. 5
      libi2pd_client/BOB.cpp

5
libi2pd_client/BOB.cpp

@ -448,7 +448,10 @@ namespace client @@ -448,7 +448,10 @@ namespace client
void BOBCommandSession::GetdestCommandHandler (const char * operand, size_t len)
{
LogPrint (eLogDebug, "BOB: getdest");
SendReplyOK (m_Keys.GetPublic ()->ToBase64 ().c_str ());
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)

Loading…
Cancel
Save