DNETMAP: remove NF_CT_ASSERT use

The hooks are already checked by the xtables core (due to struct
xt_target::hooks).
This commit is contained in:
Jan Engelhardt
2017-11-22 18:27:07 +01:00
parent b565a85fb6
commit 0a6091b64a

View File

@@ -376,10 +376,6 @@ dnetmap_tg(struct sk_buff *skb, const struct xt_action_param *par)
#else
unsigned int hooknum = par->hooknum;
#endif
NF_CT_ASSERT(hooknum == NF_INET_POST_ROUTING ||
hooknum == NF_INET_LOCAL_OUT ||
hooknum == NF_INET_PRE_ROUTING);
ct = nf_ct_get(skb, &ctinfo);
jttl = tginfo->flags & XT_DNETMAP_TTL ? tginfo->ttl * HZ : jtimeout;