aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/syncookies.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/syncookies.c')
-rw-r--r--net/ipv6/syncookies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c
index 70d330f8c990..c7ee57421ece 100644
--- a/net/ipv6/syncookies.c
+++ b/net/ipv6/syncookies.c
@@ -180,8 +180,8 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb)
180 memset(&tcp_opt, 0, sizeof(tcp_opt)); 180 memset(&tcp_opt, 0, sizeof(tcp_opt));
181 tcp_parse_options(skb, &tcp_opt, &hash_location, 0); 181 tcp_parse_options(skb, &tcp_opt, &hash_location, 0);
182 182
183 if (tcp_opt.saw_tstamp) 183 if (!cookie_check_timestamp(&tcp_opt))
184 cookie_check_timestamp(&tcp_opt); 184 goto out;
185 185
186 ret = NULL; 186 ret = NULL;
187 req = inet6_reqsk_alloc(&tcp6_request_sock_ops); 187 req = inet6_reqsk_alloc(&tcp6_request_sock_ops);