diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-04-22 02:56:57 -0700 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-04-25 15:34:30 +0200 |
commit | d2b484b577776f3c6f4d52505b27bad27ea1fe00 (patch) | |
tree | 284a839b1941f33910941490147ae7ac5f8372f6 /net/ipv6 | |
parent | 3bb398d925ec73e42b778cf823c8f4aecae359ea (diff) | |
download | linux-d2b484b577776f3c6f4d52505b27bad27ea1fe00.tar.gz linux-d2b484b577776f3c6f4d52505b27bad27ea1fe00.tar.bz2 linux-d2b484b577776f3c6f4d52505b27bad27ea1fe00.zip |
netfilter: ip6t_SYNPROXY: unnecessary to check whether ip6_route_output returns NULL
ip6_route_output() will never return a NULL pointer, so there's no need
to check it.
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6t_SYNPROXY.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_SYNPROXY.c b/net/ipv6/netfilter/ip6t_SYNPROXY.c index 5d778dd11f66..06bed74cf5ee 100644 --- a/net/ipv6/netfilter/ip6t_SYNPROXY.c +++ b/net/ipv6/netfilter/ip6t_SYNPROXY.c @@ -60,7 +60,7 @@ synproxy_send_tcp(struct net *net, fl6.fl6_dport = nth->dest; security_skb_classify_flow((struct sk_buff *)skb, flowi6_to_flowi(&fl6)); dst = ip6_route_output(net, NULL, &fl6); - if (dst == NULL || dst->error) { + if (dst->error) { dst_release(dst); goto free_nskb; } |