]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: initialize variable ecn_ok in syncookies path
authorMike Waychison <mikew@google.com>
Thu, 11 Aug 2011 04:59:57 +0000 (21:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2011 04:59:57 +0000 (21:59 -0700)
commite2e86d741b21ac610afdf41c60e0fb056e05628d
treea8b2311c0cf7573c22d99c6917c08e77b225d637
parent0281679b799aa5194239bf582b9cb5de4dc2d0bb
tcp: initialize variable ecn_ok in syncookies path

Using a gcc 4.4.3, warnings are emitted for a possibly uninitialized use
of ecn_ok.

This can happen if cookie_check_timestamp() returns due to not having
seen a timestamp.  Defaulting to ecn off seems like a reasonable thing
to do in this case, so initialized ecn_ok to false.

Signed-off-by: Mike Waychison <mikew@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/syncookies.c
net/ipv6/syncookies.c