[NETFILTER]: Don't invoke okfn in CONFIG_NETFILTER=n variant of nf_hook()

nf_hook() is supposed to call the netfilter hook and return control of the
packet back to the caller in case it may pass, the okfn is only used for
queueing.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Patrick McHardy and committed by David S. Miller 9c92d348 48d5cad8

+1 -1
+1 -1
include/linux/netfilter.h
··· 318 318 struct net_device *indev, struct net_device *outdev, 319 319 int (*okfn)(struct sk_buff *)) 320 320 { 321 - return okfn(*pskb); 321 + return 1; 322 322 } 323 323 static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} 324 324 struct flowi;