make router unreachable if AEAD fails in SessionCreated

This commit is contained in:
orignal 2023-05-03 07:43:28 -04:00
parent fb83ca42f4
commit 4ce2ef1d83
3 changed files with 7 additions and 1 deletions

View file

@ -566,7 +566,11 @@ namespace transport
SendSessionConfirmed ();
}
else
{
if (GetRemoteIdentity ())
i2p::data::netdb.SetUnreachable (GetRemoteIdentity ()->GetIdentHash (), true); // assume wrong s key
Terminate ();
}
}
}