netfilter: xt_CT: fix unset return value if conntrack zone are disabled
Subsystems (2)
[email protected]
maintainerFrom: Pablo Neira Ayuso <[email protected]>
net/netfilter/xt_CT.c: In function ‘xt_ct_tg_check_v1’:net/netfilter/xt_CT.c:250:6: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] net/netfilter/xt_CT.c: In function ‘xt_ct_tg_check_v0’:net/netfilter/xt_CT.c:112:6: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
[ You can cherry-pick from 4610476 netfilter: xt_CT: fix unset return value if conntrack zone are disabled ]
Reported-by Borislav Petkov <[email protected]>
Acked-by Borislav Petkov <[email protected]>
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/netfilter/xt_CT.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/netfilter/xt_CT.c +2 -2
@@ -109,7 +109,7 @@ static int xt_ct_tg_check_v0(const struct xt_tgchk_param *par)struct xt_ct_target_info *info = par->targinfo;struct nf_conntrack_tuple t;struct nf_conn *ct; -int ret; +int ret = -EOPNOTSUPP ;if (info->flags & ~XT_CT_NOTRACK )return -EINVAL ;
@@ -243,7 +243,7 @@ static int xt_ct_tg_check_v1(const struct xt_tgchk_param *par)struct xt_ct_target_info_v1 *info = par->targinfo;struct nf_conntrack_tuple t;struct nf_conn *ct; -int ret; +int ret = -EOPNOTSUPP ;if (info->flags & ~XT_CT_NOTRACK )return -EINVAL ;
Signature · 6 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html