mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check identity buffer size
This commit is contained in:
parent
519330015f
commit
4c8d85870b
3 changed files with 19 additions and 5 deletions
|
@ -188,7 +188,8 @@ namespace client
|
|||
}
|
||||
// if not .b32 we assume full base64 address
|
||||
i2p::data::IdentityEx dest;
|
||||
dest.FromBase64 (address);
|
||||
if (!dest.FromBase64 (address))
|
||||
return false;
|
||||
ident = dest.GetIdentHash ();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue