Commit 427345d6 authored by Florian Westphal's avatar Florian Westphal Committed by Pablo Neira Ayuso

netfilter: nft_ct: fix random validation errors for zone set support

Dan reports:
 net/netfilter/nft_ct.c:549 nft_ct_set_init()
 error: uninitialized symbol 'len'.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: edee4f1e ("netfilter: nft_ct: add zone id set support")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 9c471370
...@@ -528,6 +528,7 @@ static int nft_ct_set_init(const struct nft_ctx *ctx, ...@@ -528,6 +528,7 @@ static int nft_ct_set_init(const struct nft_ctx *ctx,
if (!nft_ct_tmpl_alloc_pcpu()) if (!nft_ct_tmpl_alloc_pcpu())
return -ENOMEM; return -ENOMEM;
nft_ct_pcpu_template_refcnt++; nft_ct_pcpu_template_refcnt++;
len = sizeof(u16);
break; break;
#endif #endif
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment