summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-17 17:15:08 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-17 17:15:08 +0000
commit7f23da69b3e6c7c4c661f38834a68e303fa61f10 (patch)
treee8238f14ebd2f35cf2a5ec2650834d1dd3f8b421 /sys/net
parent41488b4ac2567e7f0c7321a867e583f1d1411e8f (diff)
fix uninitialized var; found by millert@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pfsync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index dc28a8f9d48..83134339d89 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.32 2004/04/30 22:08:18 mcbride Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.33 2004/05/17 17:15:07 mickey Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -1117,7 +1117,7 @@ pfsync_request_update(struct pfsync_state_upd *up, struct in_addr *src)
struct pfsync_header *h;
struct pfsync_softc *sc = ifp->if_softc;
struct pfsync_state_upd_req *rup;
- int ret;
+ int ret = 0;
if (sc->sc_mbuf == NULL) {
if ((sc->sc_mbuf = pfsync_get_mbuf(sc, PFSYNC_ACT_UREQ,
@@ -1269,7 +1269,7 @@ pfsync_bulkfail(void *v)
if (pf_status.debug >= PF_DEBUG_MISC)
printf("pfsync: cannot allocate mbufs for "
"bulk update\n");
- } else
+ } else
pfsync_sendout(sc);
splx(s);
} else {