Skip to content

Commit

Permalink
pfsync: ensure 'error' is always initialised
Browse files Browse the repository at this point in the history
Reported by:	Herbert J. Skuhra <[email protected]>
MFC after:	2 weeks

(cherry picked from commit f52ca3d)
  • Loading branch information
kprovost authored and fichtner committed Mar 3, 2023
1 parent f739774 commit 22166c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netpfil/pf/if_pfsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 22166c9

Please sign in to comment.