mirror of
https://github.com/opnsense/src.git
synced 2026-02-22 17:32:57 -05:00
pfsync: ensure 'error' is always initialised
Reported by: Herbert J. Skuhra <herbert@gojira.at> MFC after: 2 weeks
This commit is contained in:
parent
9a1cab6d79
commit
f52ca3dfd5
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue