mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
check if local destination is not null
This commit is contained in:
parent
13f263b791
commit
5f43026986
1 changed files with 5 additions and 0 deletions
|
@ -667,6 +667,11 @@ namespace client
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto localDestination = m_CurrentDestination ? m_CurrentDestination->GetLocalDestination () : i2p::client::context.GetSharedLocalDestination ();
|
auto localDestination = m_CurrentDestination ? m_CurrentDestination->GetLocalDestination () : i2p::client::context.GetSharedLocalDestination ();
|
||||||
|
if (!localDestination)
|
||||||
|
{
|
||||||
|
SendReplyError ("No local destination");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (addr->IsIdentHash ())
|
if (addr->IsIdentHash ())
|
||||||
{
|
{
|
||||||
// we might have leaseset already
|
// we might have leaseset already
|
||||||
|
|
Loading…
Add table
Reference in a new issue