aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 70079454ffd0..89341c32631a 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -212,8 +212,9 @@ NF_HOOK_COND(uint8_t pf, unsigned int hook, struct sk_buff *skb,
212 struct net_device *in, struct net_device *out, 212 struct net_device *in, struct net_device *out,
213 int (*okfn)(struct sk_buff *), bool cond) 213 int (*okfn)(struct sk_buff *), bool cond)
214{ 214{
215 int ret = 1; 215 int ret;
216 if (cond || 216
217 if (!cond ||
217 (ret = nf_hook_thresh(pf, hook, skb, in, out, okfn, INT_MIN) == 1)) 218 (ret = nf_hook_thresh(pf, hook, skb, in, out, okfn, INT_MIN) == 1))
218 ret = okfn(skb); 219 ret = okfn(skb);
219 return ret; 220 return ret;