Browse Source

check if local destination is not null

pull/1945/head
orignal 1 year ago
parent
commit
5f43026986
  1. 5
      libi2pd_client/BOB.cpp

5
libi2pd_client/BOB.cpp

@ -667,6 +667,11 @@ namespace client @@ -667,6 +667,11 @@ namespace client
return;
}
auto localDestination = m_CurrentDestination ? m_CurrentDestination->GetLocalDestination () : i2p::client::context.GetSharedLocalDestination ();
if (!localDestination)
{
SendReplyError ("No local destination");
return;
}
if (addr->IsIdentHash ())
{
// we might have leaseset already

Loading…
Cancel
Save