bug 2165: server replies to SYN (with option TS) with a SYNACK (with option TS) also if the attribute Timestamp is false
authorNatale Patriciello <natale.patriciello@gmail.com>
Thu, 03 Sep 2015 21:12:22 -0700
changeset 11632 88d6e64c778c
parent 11631 8a9ba9524f57
child 11633 6b74df04cf44
bug 2165: server replies to SYN (with option TS) with a SYNACK (with option TS) also if the attribute Timestamp is false
src/internet/model/tcp-socket-base.cc
--- a/src/internet/model/tcp-socket-base.cc	Fri Sep 04 01:10:45 2015 +0200
+++ b/src/internet/model/tcp-socket-base.cc	Thu Sep 03 21:12:22 2015 -0700
@@ -2575,9 +2575,10 @@
         }
     }
 
+  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));