diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-10-26 07:22:40 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-27 17:17:46 -0400 |
commit | 7965ee93719921ea5978f331da653dfa2d7b99f5 (patch) | |
tree | d21cb5c85e97c858da484150ae34dd3fd6447107 | |
parent | b51d3fa364885a2c1e1668f88776c67c95291820 (diff) |
netfilter: nft_compat: fix wrong target lookup in nft_target_select_ops()
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>
-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 0480f57a4eb6..9d6d6f60a80f 100644 --- a/net/netfilter/nft_compat.c +++ b/net/netfilter/nft_compat.c | |||
@@ -672,7 +672,7 @@ nft_target_select_ops(const struct nft_ctx *ctx, | |||
672 | family = ctx->afi->family; | 672 | family = ctx->afi->family; |
673 | 673 | ||
674 | /* Re-use the existing target if it's already loaded. */ | 674 | /* Re-use the existing target if it's already loaded. */ |
675 | list_for_each_entry(nft_target, &nft_match_list, head) { | 675 | list_for_each_entry(nft_target, &nft_target_list, head) { |
676 | struct xt_target *target = nft_target->ops.data; | 676 | struct xt_target *target = nft_target->ops.data; |
677 | 677 | ||
678 | if (strcmp(target->name, tg_name) == 0 && | 678 | if (strcmp(target->name, tg_name) == 0 && |