]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/netfilter/xt_TEE.c
ipv4: Make output route lookup return rtable directly.
[mirror_ubuntu-artful-kernel.git] / net / netfilter / xt_TEE.c
index 5128a6c4cb2cd9011b87131ad334e762d1dc7d2f..624725b5286f10ee7c05af2529ea149010a64d60 100644 (file)
@@ -73,7 +73,8 @@ tee_tg_route4(struct sk_buff *skb, const struct xt_tee_tginfo *info)
        fl.fl4_dst = info->gw.ip;
        fl.fl4_tos = RT_TOS(iph->tos);
        fl.fl4_scope = RT_SCOPE_UNIVERSE;
-       if (ip_route_output_key(net, &rt, &fl) != 0)
+       rt = ip_route_output_key(net, &fl);
+       if (IS_ERR(rt))
                return false;
 
        skb_dst_drop(skb);