check I2NP messages fro expiration

This commit is contained in:
orignal 2016-01-18 21:13:43 -05:00
parent eb2d68fc28
commit 9611f80a39
5 changed files with 22 additions and 3 deletions

View file

@ -225,6 +225,11 @@ namespace tunnel
void TunnelEndpoint::HandleNextMessage (const TunnelMessageBlock& msg)
{
if (msg.data->IsExpired ())
{
LogPrint (eLogInfo, "TunnelMessage: message expired");
return;
}
auto typeID = msg.data->GetTypeID ();
LogPrint (eLogDebug, "TunnelMessage: handle fragment of ", msg.data->GetLength (), " bytes, msg type ", (int)typeID);
switch (msg.deliveryType)