From 3783fb0e14f2f54925588f16d1d9d36ea2c6a45f Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 6 Apr 2019 09:52:04 -0400 Subject: [PATCH] fix inbound sessions --- llarp/service/endpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 9581964d8..a8fca07c9 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -1391,7 +1391,7 @@ namespace llarp continue; if(!GetCachedSessionKeyFor(tag, K)) continue; - if(p == nullptr && GetIntroFor(tag, remoteIntro)) + if(GetIntroFor(tag, remoteIntro)) { if(!remoteIntro.ExpiresSoon(now)) p = GetNewestPathByRouter(remoteIntro.router); @@ -1406,13 +1406,13 @@ namespace llarp { // TODO: check expiration of our end ProtocolMessage m(f.T); - PutReplyIntroFor(f.T, m.introReply); m.PutBuffer(data); f.N.Randomize(); f.C.Zero(); transfer.Y.Randomize(); m.proto = t; m.introReply = p->intro; + PutReplyIntroFor(f.T, m.introReply); m.sender = m_Identity.pub; f.F = m.introReply.pathID; f.S = GetSeqNoForConvo(f.T);