From mboxrd@z Thu Jan 1 00:00:00 1970 From: pablo@netfilter.org Subject: [stable-3.7 11/14] netfilter: xt_CT: fix unset return value if conntrack zone are disabled Date: Mon, 28 Jan 2013 20:31:30 +0100 Message-ID: <1359401493-6196-12-git-send-email-pablo@netfilter.org> References: <1359401493-6196-1-git-send-email-pablo@netfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: davem@davemloft.net, netfilter-devel@vger.kernel.org To: stable@vger.kernel.org Return-path: Received: from mail.us.es ([193.147.175.20]:50522 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753686Ab3A1TcE (ORCPT ); Mon, 28 Jan 2013 14:32:04 -0500 In-Reply-To: <1359401493-6196-1-git-send-email-pablo@netfilter.org> Sender: netfilter-devel-owner@vger.kernel.org List-ID: =46rom: Pablo Neira Ayuso net/netfilter/xt_CT.c: In function =E2=80=98xt_ct_tg_check_v1=E2=80=99: net/netfilter/xt_CT.c:250:6: warning: =E2=80=98ret=E2=80=99 may be used= uninitialized in this function [-Wmaybe-uninitialized] net/netfilter/xt_CT.c: In function =E2=80=98xt_ct_tg_check_v0=E2=80=99: net/netfilter/xt_CT.c:112:6: warning: =E2=80=98ret=E2=80=99 may be used= uninitialized in this function [-Wmaybe-uninitialized] Reported-by: Borislav Petkov Acked-by: Borislav Petkov Signed-off-by: Pablo Neira Ayuso --- net/netfilter/xt_CT.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c index aeeaf5c..8461605 100644 --- a/net/netfilter/xt_CT.c +++ b/net/netfilter/xt_CT.c @@ -109,7 +109,7 @@ static int xt_ct_tg_check_v0(const struct xt_tgchk_= param *par) struct xt_ct_target_info *info =3D par->targinfo; struct nf_conntrack_tuple t; struct nf_conn *ct; - int ret; + int ret =3D -EOPNOTSUPP; =20 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 =3D par->targinfo; struct nf_conntrack_tuple t; struct nf_conn *ct; - int ret; + int ret =3D -EOPNOTSUPP; =20 if (info->flags & ~XT_CT_NOTRACK) return -EINVAL; --=20 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-dev= el" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html