don't send protocol discard message on fail

pull/1319/head
jeff 4 years ago committed by Jeff Becker
parent 099831719a
commit 78a4d361ab
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -912,25 +912,7 @@ namespace llarp
RemoveConvoTag(frame.T);
return true;
}
if (!frame.AsyncDecryptAndVerify(EndpointLogic(), p, m_Identity, this))
{
// send discard
ProtocolFrame f;
f.R = 1;
f.T = frame.T;
f.F = p->intro.pathID;
if (!f.Sign(m_Identity))
return false;
{
LogWarn("invalidating convotag T=", frame.T);
util::Lock lock(m_state->m_SendQueueMutex);
m_state->m_SendQueue.emplace_back(
std::make_shared<const routing::PathTransferMessage>(f, frame.F), p);
}
return true;
}
return true;
return frame.AsyncDecryptAndVerify(EndpointLogic(), p, m_Identity, this);
}
void Endpoint::HandlePathDied(path::Path_ptr)

Loading…
Cancel
Save