X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=net%2Fnetfilter%2Fxt_recent.c;h=d725a27743a169fc80cc00f38dd2278696be3365;hb=bdc15ce316507225587552a3e63e7e09d94b81be;hp=45e1b30e4fb214f850af2590425ab2a9748c6476;hpb=d6bcc8069b27090f7e5bbe0521774f11c68a7001;p=karo-tx-linux.git diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c index 45e1b30e4fb2..d725a27743a1 100644 --- a/net/netfilter/xt_recent.c +++ b/net/netfilter/xt_recent.c @@ -237,7 +237,7 @@ static void recent_table_flush(struct recent_table *t) static bool recent_mt(const struct sk_buff *skb, struct xt_action_param *par) { - struct net *net = dev_net(par->in ? par->in : par->out); + struct net *net = par->net; struct recent_net *recent_net = recent_pernet(net); const struct xt_recent_mtinfo_v1 *info = par->matchinfo; struct recent_table *t;