summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-01-20 03:36:20 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-01-20 03:36:20 +0000
commitc538171bce521442f0eac5fff7ba928c1822dc6d (patch)
tree379e26aaffeef1a33e46e61e7e89b2380d51d7fa /sys/net
parent550b79a694f2735fac4289ea8473d57aac74f52b (diff)
Ignore pfsync packets if pf is not running.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pfsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index a71df647e86..409a6931b25 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.16 2004/01/19 19:46:33 mcbride Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.17 2004/01/20 03:36:19 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -241,7 +241,7 @@ pfsync_input(struct mbuf *m, ...)
pfsyncstats.pfsyncs_ipackets++;
/* verify that we have a sync interface configured */
- if (!sc->sc_sync_ifp)
+ if (!sc->sc_sync_ifp || !pf_status.running)
goto done;
/* verify that the packet came in on the right interface */