bug 2165: server replies to SYN (with option TS) with a SYNACK (with option TS) also if the attribute Timestamp is false

This commit is contained in:
Natale Patriciello
2015-09-03 21:12:22 -07:00
parent d19b8f263f
commit 34046a43d0

View File

@@ -2575,9 +2575,10 @@ TcpSocketBase::ReadOptions (const TcpHeader& header)
}
}
bool timestampAttribute = m_timestampEnabled;
m_timestampEnabled = false;
if (header.HasOption (TcpOption::TS))
if (header.HasOption (TcpOption::TS) && timestampAttribute)
{
m_timestampEnabled = true;
ProcessOptionTimestamp (header.GetOption (TcpOption::TS));