diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-10-26 12:22:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-21 09:23:15 -0800 |
commit | d6ba63efc10ef0e99096c152037f4464c75cfb8a (patch) | |
tree | 0c5b1a619a81748921a60624b0bb022d4d40342f /net | |
parent | 0adb674c9a102ca1c0d28fc127d8ce250168c3a9 (diff) |
netfilter: nft_compat: fix wrong target lookup in nft_target_select_ops()
commit 7965ee93719921ea5978f331da653dfa2d7b99f5 upstream.
The code looks for an already loaded target, and the correct list to search
is nft_target_list, not nft_match_list.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nft_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_compat.c b/net/netfilter/nft_compat.c index 1840989092ed..5b5ab9ec1a90 100644 --- a/net/netfilter/nft_compat.c +++ b/net/netfilter/nft_compat.c @@ -696,7 +696,7 @@ nft_target_select_ops(const struct nft_ctx *ctx, family = ctx->afi->family; /* Re-use the existing target if it's already loaded. */ - list_for_each_entry(nft_target, &nft_match_list, head) { + list_for_each_entry(nft_target, &nft_target_list, head) { struct xt_target *target = nft_target->ops.data; if (strcmp(target->name, tg_name) == 0 && |