mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 00:07:39 +01:00
fixed memory corruption
This commit is contained in:
parent
76478ceaa2
commit
3d0349191d
1 changed files with 2 additions and 1 deletions
|
@ -346,8 +346,9 @@ namespace data
|
||||||
size_t l1 = i2p::data::ByteStreamToBase64 (buf, l, str, GetFullLen ()*2);
|
size_t l1 = i2p::data::ByteStreamToBase64 (buf, l, str, GetFullLen ()*2);
|
||||||
str[l1] = 0;
|
str[l1] = 0;
|
||||||
delete[] buf;
|
delete[] buf;
|
||||||
|
std::string ret(str);
|
||||||
delete[] str;
|
delete[] str;
|
||||||
return std::string (str);
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrivateKeys::Sign (const uint8_t * buf, int len, uint8_t * signature) const
|
void PrivateKeys::Sign (const uint8_t * buf, int len, uint8_t * signature) const
|
||||||
|
|
Loading…
Add table
Reference in a new issue