Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2023 16:25:48 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7e2de012f38a - stable/12 - pfsync: ensure 'error' is always initialised
Message-ID:  <202303021625.322GPmYC053113@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=7e2de012f38a7cb36357efb8cb00174bab4b479e

commit 7e2de012f38a7cb36357efb8cb00174bab4b479e
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-02-16 08:16:35 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-03-02 11:15:28 +0000

    pfsync: ensure 'error' is always initialised
    
    Reported by:    Herbert J. Skuhra <herbert@gojira.at>
    MFC after:      2 weeks
    
    (cherry picked from commit f52ca3dfd5520332e8cb8d08eda1b92aca2a159c)
---
 sys/netpfil/pf/if_pfsync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
index e3e3fa3ad6a2..8d90f76a3faa 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -2328,7 +2328,7 @@ static void
 pfsync_tx(struct pfsync_softc *sc, struct mbuf *m)
 {
 	struct ip *ip;
-	int error, af;
+	int af, error = 0;
 
 	ip = mtod(m, struct ip *);
 	MPASS(ip->ip_v == IPVERSION || ip->ip_v == (IPV6_VERSION >> 4));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303021625.322GPmYC053113>