1
0
Fork 0

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>
hifive-unleashed-5.1
Liping Zhang 2016-04-22 02:56:57 -07:00 committed by Pablo Neira Ayuso
parent 3bb398d925
commit d2b484b577
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}