diff options
author | Kristof Provost <kp@FreeBSD.org> | 2023-02-16 08:16:35 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2023-03-02 16:21:59 +0000 |
commit | 5e9b79c4e652be192e76bb4df842ea5228e8c4ca (patch) | |
tree | 2169358eb15ecde75d42bb7513a79c8cbcaf841c | |
parent | 3dec62eded04eaf431bf0948f4e6412deede87d5 (diff) | |
download | src-5e9b79c4e652be192e76bb4df842ea5228e8c4ca.tar.gz src-5e9b79c4e652be192e76bb4df842ea5228e8c4ca.zip |
pfsync: ensure 'error' is always initialised
Reported by: Herbert J. Skuhra <herbert@gojira.at>
MFC after: 2 weeks
(cherry picked from commit f52ca3dfd5520332e8cb8d08eda1b92aca2a159c)
-rw-r--r-- | sys/netpfil/pf/if_pfsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |