diff options
| author | Eric Dumazet <[email protected]> | 2010-06-03 05:45:47 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-06-04 22:56:03 +0000 |
| commit | c44649216522cd607a4027d2ebf4a8147d3fa94c (patch) | |
| tree | e46e153f3f3166353d9818e6b719f1c06b60d4be | |
| parent | rps: tcp: fix rps_sock_flow_table table updates (diff) | |
| download | kernel-c44649216522cd607a4027d2ebf4a8147d3fa94c.tar.gz kernel-c44649216522cd607a4027d2ebf4a8147d3fa94c.zip | |
tcp: use correct net ns in cookie_v4_check()
Its better to make a route lookup in appropriate namespace.
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
| -rw-r--r-- | net/ipv4/syncookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 5c24db4a3c91..9f6b22206c52 100644 --- 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; } |
