pfsync: ensure 'error' is always initialised

Reported by:	Herbert J. Skuhra <herbert@gojira.at>
MFC after:	2 weeks
This commit is contained in:
Kristof Provost 2023-02-16 09:16:35 +01:00
parent 9a1cab6d79
commit f52ca3dfd5

View File

@ -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));