mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
fixed another cases for #651
This commit is contained in:
parent
e78ccc6bec
commit
b1f8f9830b
1 changed files with 10 additions and 2 deletions
12
BOB.cpp
12
BOB.cpp
|
@ -437,8 +437,11 @@ namespace client
|
||||||
void BOBCommandSession::GetkeysCommandHandler (const char * operand, size_t len)
|
void BOBCommandSession::GetkeysCommandHandler (const char * operand, size_t len)
|
||||||
{
|
{
|
||||||
LogPrint (eLogDebug, "BOB: getkeys");
|
LogPrint (eLogDebug, "BOB: getkeys");
|
||||||
SendReplyOK (m_Keys.ToBase64 ().c_str ());
|
if (m_Keys.GetPublic ()) // keys are set ?
|
||||||
}
|
SendReplyOK (m_Keys.ToBase64 ().c_str ());
|
||||||
|
else
|
||||||
|
SendReplyError ("keys are not set");
|
||||||
|
}
|
||||||
|
|
||||||
void BOBCommandSession::GetdestCommandHandler (const char * operand, size_t len)
|
void BOBCommandSession::GetdestCommandHandler (const char * operand, size_t len)
|
||||||
{
|
{
|
||||||
|
@ -506,6 +509,11 @@ namespace client
|
||||||
SendReplyError ("Address Not found");
|
SendReplyError ("Address Not found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!m_CurrentDestination)
|
||||||
|
{
|
||||||
|
SendReplyError ("session not created");
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto localDestination = m_CurrentDestination->GetLocalDestination ();
|
auto localDestination = m_CurrentDestination->GetLocalDestination ();
|
||||||
auto leaseSet = localDestination->FindLeaseSet (ident);
|
auto leaseSet = localDestination->FindLeaseSet (ident);
|
||||||
if (leaseSet)
|
if (leaseSet)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue