mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 02:11:43 +00:00
check datetime block size in NTCP2 data frame
This commit is contained in:
1 parent
94ff267b45
commit
2c1d3612e0
1 file changed
+5
@@ -1308,6 +1308,11 @@ namespace transport
|
||||
case eNTCP2BlkDateTime:
|
||||
{
|
||||
LogPrint (eLogDebug, "NTCP2: Datetime");
|
||||
if (size < 4)
|
||||
{
|
||||
LogPrint (eLogWarning, "NTCP2: Datetime block is too short ", size);
|
||||
break;
|
||||
}
|
||||
if (m_IsEstablished)
|
||||
{
|
||||
uint64_t ts = i2p::util::GetSecondsSinceEpoch ();
|
||||
|
||||
Reference in new issue
Block a user