diff options
Diffstat (limited to 'net/ipv6/syncookies.c')
-rw-r--r-- | net/ipv6/syncookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c index 12383705dbad..9fcb3ec7c838 100644 --- a/net/ipv6/syncookies.c +++ b/net/ipv6/syncookies.c | |||
@@ -174,7 +174,7 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb) | |||
174 | struct dst_entry *dst; | 174 | struct dst_entry *dst; |
175 | __u8 rcv_wscale; | 175 | __u8 rcv_wscale; |
176 | 176 | ||
177 | if (!sysctl_tcp_syncookies || !th->ack) | 177 | if (!sysctl_tcp_syncookies || !th->ack || th->rst) |
178 | goto out; | 178 | goto out; |
179 | 179 | ||
180 | if (tcp_synq_no_recent_overflow(sk) || | 180 | if (tcp_synq_no_recent_overflow(sk) || |