OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca55158
)
tcp: use correct net ns in cookie_v4_check()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 3 Jun 2010 05:45:47 +0000
(
05:45
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 4 Jun 2010 22:56:03 +0000
(15:56 -0700)
Its better to make a route lookup in appropriate namespace.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/syncookies.c
patch
|
blob
|
history
diff --git
a/net/ipv4/syncookies.c
b/net/ipv4/syncookies.c
index
5c24db4
..
9f6b222
100644
(file)
--- a/
net/ipv4/syncookies.c
+++ b/
net/ipv4/syncookies.c
@@
-347,7
+347,7
@@
struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb,
{ .sport = th->dest,
.dport = th->source } } };
security_req_classify_flow(req, &fl);
- if (ip_route_output_key(
&init_net
, &rt, &fl)) {
+ if (ip_route_output_key(
sock_net(sk)
, &rt, &fl)) {
reqsk_free(req);
goto out;
}