mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check for RI size
This commit is contained in:
parent
6ac846f95d
commit
56a95fa9b5
2 changed files with 8 additions and 3 deletions
|
@ -179,8 +179,8 @@ namespace data
|
|||
void NetDb::AddRouterInfo (const uint8_t * buf, int len)
|
||||
{
|
||||
IdentityEx identity;
|
||||
identity.FromBuffer (buf, len);
|
||||
AddRouterInfo (identity.GetIdentHash (), buf, len);
|
||||
if (identity.FromBuffer (buf, len))
|
||||
AddRouterInfo (identity.GetIdentHash (), buf, len);
|
||||
}
|
||||
|
||||
void NetDb::AddRouterInfo (const IdentHash& ident, const uint8_t * buf, int len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue