mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +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);
|
||||
i2p::data::IdentHash ident;
|
||||
if (!context.GetAddressBook ().GetIdentHash (operand, ident) && !m_CurrentDestination)
|
||||
if (!context.GetAddressBook ().GetIdentHash (operand, ident) || !m_CurrentDestination)
|
||||
{
|
||||
SendReplyError ("Address Not found");
|
||||
return;
|
||||
@ -481,8 +481,8 @@ namespace client
|
||||
else
|
||||
{
|
||||
auto s = shared_from_this ();
|
||||
m_CurrentDestination->GetLocalDestination ()->RequestDestination (ident,
|
||||
[s, localDestination](std::shared_ptr<i2p::data::LeaseSet> ls)
|
||||
localDestination->RequestDestination (ident,
|
||||
[s](std::shared_ptr<i2p::data::LeaseSet> ls)
|
||||
{
|
||||
if (ls)
|
||||
s->SendReplyOK (ls->GetIdentity ().ToBase64 ().c_str ());
|
||||
|
Loading…
x
Reference in New Issue
Block a user