diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index a13f881e5037..6558dfd899da 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1506,7 +1506,7 @@ static struct sock *tcp_v4_hnd_req(struct sock *sk, struct sk_buff *skb) | |||
1506 | } | 1506 | } |
1507 | 1507 | ||
1508 | #ifdef CONFIG_SYN_COOKIES | 1508 | #ifdef CONFIG_SYN_COOKIES |
1509 | if (!th->rst && !th->syn && th->ack) | 1509 | if (!th->syn) |
1510 | sk = cookie_v4_check(sk, skb, &(IPCB(skb)->opt)); | 1510 | sk = cookie_v4_check(sk, skb, &(IPCB(skb)->opt)); |
1511 | #endif | 1511 | #endif |
1512 | return sk; | 1512 | return sk; |