From b29e94005d4568c7b295923f18038d7eadb5ae59 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 10 Apr 2015 09:58:08 -0400 Subject: [PATCH] fixed crash --- BOB.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BOB.cpp b/BOB.cpp index 86f652f8..f5f11d39 100644 --- a/BOB.cpp +++ b/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 ls) + localDestination->RequestDestination (ident, + [s](std::shared_ptr ls) { if (ls) s->SendReplyOK (ls->GetIdentity ().ToBase64 ().c_str ());