ipv4: Make output route lookup return rtable directly.
Instead of on the stack. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
452edd598f
commit
b23dd4fe42
36 changed files with 267 additions and 224 deletions
|
@ -355,7 +355,8 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb,
|
|||
.fl_ip_sport = th->dest,
|
||||
.fl_ip_dport = th->source };
|
||||
security_req_classify_flow(req, &fl);
|
||||
if (ip_route_output_key(sock_net(sk), &rt, &fl)) {
|
||||
rt = ip_route_output_key(sock_net(sk), &fl);
|
||||
if (IS_ERR(rt)) {
|
||||
reqsk_free(req);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue