check if local destination is not null

This commit is contained in:
orignal 2023-07-06 12:30:33 -04:00
parent 13f263b791
commit 5f43026986

View File

@ -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