From 762728c7eca82d3db10b9dd43ade01abc31e1a26 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 21 Feb 2019 12:13:27 -0500 Subject: [PATCH] fix --- llarp/service/endpoint.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 0b6faff96..83dcc8672 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -920,11 +920,10 @@ namespace llarp Endpoint::HandleDataMessage(const PathID_t& src, ProtocolMessage* msg) { auto path = GetPathByID(src); - if(path == nullptr) - return false; + if(path) + PutReplyIntroFor(msg->tag, path->intro); msg->sender.UpdateAddr(); PutIntroFor(msg->tag, msg->introReply); - PutReplyIntroFor(msg->tag, path->intro); EnsureReplyPath(msg->sender); return ProcessDataMessage(msg); } @@ -1636,6 +1635,7 @@ namespace llarp ex->msg.PutBuffer(payload); ex->msg.introReply = path->intro; + m_DataHandler->PutReplyIntroFor(currentConvoTag, path->intro); llarp_threadpool_queue_job(m_Endpoint->Worker(), {ex, &AsyncKeyExchange::Encrypt}); }