mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
fixed crash
This commit is contained in:
parent
94555b9c43
commit
90dee900f0
1 changed files with 3 additions and 2 deletions
|
@ -659,7 +659,7 @@ namespace transport
|
||||||
if (s.second->GetRelayTag () && s.second->GetState () == eSessionStateEstablished &&
|
if (s.second->GetRelayTag () && s.second->GetState () == eSessionStateEstablished &&
|
||||||
ts < s.second->GetCreationTime () + SSU_TO_INTRODUCER_SESSION_EXPIRATION)
|
ts < s.second->GetCreationTime () + SSU_TO_INTRODUCER_SESSION_EXPIRATION)
|
||||||
ret.push_back (s.second);
|
ret.push_back (s.second);
|
||||||
else
|
else if (s.second->GetRemoteIdentity ())
|
||||||
excluded.insert (s.second->GetRemoteIdentity ()->GetIdentHash ());
|
excluded.insert (s.second->GetRemoteIdentity ()->GetIdentHash ());
|
||||||
}
|
}
|
||||||
if ((int)ret.size () > maxNumIntroducers)
|
if ((int)ret.size () > maxNumIntroducers)
|
||||||
|
@ -800,6 +800,7 @@ namespace transport
|
||||||
newList.push_back (ep);
|
newList.push_back (ep);
|
||||||
if (newList.size () >= SSU_MAX_NUM_INTRODUCERS) break;
|
if (newList.size () >= SSU_MAX_NUM_INTRODUCERS) break;
|
||||||
}
|
}
|
||||||
|
if (it1->GetRemoteIdentity ())
|
||||||
excluded.insert (it1->GetRemoteIdentity ()->GetIdentHash ());
|
excluded.insert (it1->GetRemoteIdentity ()->GetIdentHash ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue