From 22166c9a5073f2cb0e05bdf1348b17ee24bd080c Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Thu, 16 Feb 2023 09:16:35 +0100 Subject: [PATCH] pfsync: ensure 'error' is always initialised Reported by: Herbert J. Skuhra 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 6c25ddb7f6b3..610252a9fdf3 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -2329,7 +2329,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));