]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/syncookies.c
ipv4: Make output route lookup return rtable directly.
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / syncookies.c
index 47519205a014a773e2df5b21f6fdf27c43fe6cb1..0ad6ddf638a7ef41f33de2f13bfbe92aebbc16dc 100644 (file)
@@ -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;
                }