mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
check if RouterInfo has been decompressed completely
This commit is contained in:
parent
6885761f87
commit
ed874fe3ea
2 changed files with 8 additions and 2 deletions
|
@ -125,7 +125,8 @@ namespace data
|
|||
m_IsUnreachable = true;
|
||||
return;
|
||||
}
|
||||
std::stringstream str (std::string ((char *)m_Buffer + identityLen, m_BufferLen - identityLen));
|
||||
std::stringstream str;
|
||||
str.write ((const char *)m_Buffer + identityLen, m_BufferLen - identityLen);
|
||||
ReadFromStream (str);
|
||||
if (!str)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue