From b8740c008bbbfe8b26787a32e2e07e821b578aac Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 25 Jan 2015 10:05:19 -0500 Subject: [PATCH] fixed crash --- SAM.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SAM.cpp b/SAM.cpp index fbcc1791..d8386fcc 100644 --- a/SAM.cpp +++ b/SAM.cpp @@ -415,7 +415,8 @@ namespace client SendNamingLookupReply (m_Session->localDestination->GetIdentity ()); else if (context.GetAddressBook ().GetAddress (name, identity)) SendNamingLookupReply (identity); - else if (context.GetAddressBook ().GetIdentHash (name, ident)) + else if (m_Session && m_Session->localDestination && + context.GetAddressBook ().GetIdentHash (name, ident)) { auto leaseSet = i2p::data::netdb.FindLeaseSet (ident); if (leaseSet)