From 341e860caad4d908412dc5ac04960de26dd09d78 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 15 Oct 2014 17:45:30 -0400 Subject: [PATCH] fixed race condition --- SAM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SAM.cpp b/SAM.cpp index 8cd811d2..3b5e4d51 100644 --- a/SAM.cpp +++ b/SAM.cpp @@ -359,7 +359,7 @@ namespace stream i2p::data::IdentHash ident; if (name == "ME") SendNamingLookupReply (nullptr); - else if (i2p::data::netdb.GetAddressBook ().GetIdentHash (name, ident)) + else if (m_Session && i2p::data::netdb.GetAddressBook ().GetIdentHash (name, ident)) { auto leaseSet = m_Session->localDestination->FindLeaseSet (ident); if (leaseSet)