tcp: initialize variable ecn_ok in syncookies path
authorMike Waychison <mikew@google.com>
Thu, 11 Aug 2011 04:59:57 +0000 (21:59 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:54 +0000 (11:40 -0700)
commitbc4c1bd0d97dfd9a705bcb3ade46b051c3f4647d
tree9902cabed36b1c3d245144e062800c1322f9935e
parent616ea55abc53ced58c4097b33b26abea01a743d4
tcp: initialize variable ecn_ok in syncookies path

[ Upstream commit f0e3d0689da401f7d1981c2777a714ba295ea5ff ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/syncookies.c
net/ipv6/syncookies.c