mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
fixed crash
This commit is contained in:
parent
ddd506fde7
commit
b29e94005d
6
BOB.cpp
6
BOB.cpp
@ -469,7 +469,7 @@ namespace client
|
|||||||
{
|
{
|
||||||
LogPrint (eLogDebug, "BOB: lookup ", operand);
|
LogPrint (eLogDebug, "BOB: lookup ", operand);
|
||||||
i2p::data::IdentHash ident;
|
i2p::data::IdentHash ident;
|
||||||
if (!context.GetAddressBook ().GetIdentHash (operand, ident) && !m_CurrentDestination)
|
if (!context.GetAddressBook ().GetIdentHash (operand, ident) || !m_CurrentDestination)
|
||||||
{
|
{
|
||||||
SendReplyError ("Address Not found");
|
SendReplyError ("Address Not found");
|
||||||
return;
|
return;
|
||||||
@ -481,8 +481,8 @@ namespace client
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto s = shared_from_this ();
|
auto s = shared_from_this ();
|
||||||
m_CurrentDestination->GetLocalDestination ()->RequestDestination (ident,
|
localDestination->RequestDestination (ident,
|
||||||
[s, localDestination](std::shared_ptr<i2p::data::LeaseSet> ls)
|
[s](std::shared_ptr<i2p::data::LeaseSet> ls)
|
||||||
{
|
{
|
||||||
if (ls)
|
if (ls)
|
||||||
s->SendReplyOK (ls->GetIdentity ().ToBase64 ().c_str ());
|
s->SendReplyOK (ls->GetIdentity ().ToBase64 ().c_str ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user