The branch main has been updated by kp:

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

commit f52ca3dfd5520332e8cb8d08eda1b92aca2a159c
Author:     Kristof Provost <[email protected]>
AuthorDate: 2023-02-16 08:16:35 +0000
Commit:     Kristof Provost <[email protected]>
CommitDate: 2023-02-16 08:16:35 +0000

    pfsync: ensure 'error' is always initialised
    
    Reported by:    Herbert J. Skuhra <[email protected]>
    MFC after:      2 weeks
---
 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 1c8d8d325346..f1130ba143f1 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -2327,7 +2327,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));

Reply via email to