keep own RouterInfo in netdb

This commit is contained in:
orignal 2021-07-14 14:46:56 -04:00
parent 2c129b6d39
commit 41bfc7899d
4 changed files with 34 additions and 6 deletions

View file

@ -262,6 +262,12 @@ namespace i2p
if (!router) // we send own RouterInfo
router = context.GetSharedRouterInfo ();
if (!router->GetBuffer ())
{
LogPrint (eLogError, "I2NP: Invalid RouterInfo buffer for DatabaseStore");
return nullptr;
}
auto m = NewI2NPShortMessage ();
uint8_t * payload = m->GetPayload ();