Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202667
b: refs/heads/master
c: af9b473
h: refs/heads/master
i:
  202665: 059609b
  202663: dfd2f35
v: v3
  • Loading branch information
Florian Westphal authored and David S. Miller committed Jun 5, 2010
1 parent 29f3a66 commit 371012d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a1d4bd46047efff513600d7ff422bc344f540a6
refs/heads/master: af9b4738574b46025de7ccbe75c7b24fd8914379
2 changes: 1 addition & 1 deletion trunk/net/ipv4/syncookies.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb,
struct rtable *rt;
__u8 rcv_wscale;

if (!sysctl_tcp_syncookies || !th->ack)
if (!sysctl_tcp_syncookies || !th->ack || th->rst)
goto out;

if (tcp_synq_no_recent_overflow(sk) ||
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ static struct sock *tcp_v4_hnd_req(struct sock *sk, struct sk_buff *skb)
}

#ifdef CONFIG_SYN_COOKIES
if (!th->rst && !th->syn && th->ack)
if (!th->syn)
sk = cookie_v4_check(sk, skb, &(IPCB(skb)->opt));
#endif
return sk;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv6/syncookies.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb)
struct dst_entry *dst;
__u8 rcv_wscale;

if (!sysctl_tcp_syncookies || !th->ack)
if (!sysctl_tcp_syncookies || !th->ack || th->rst)
goto out;

if (tcp_synq_no_recent_overflow(sk) ||
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ static struct sock *tcp_v6_hnd_req(struct sock *sk,struct sk_buff *skb)
}

#ifdef CONFIG_SYN_COOKIES
if (!th->rst && !th->syn && th->ack)
if (!th->syn)
sk = cookie_v6_check(sk, skb);
#endif
return sk;
Expand Down

0 comments on commit 371012d

Please sign in to comment.