summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-10-31 14:49:02 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-10-31 14:49:02 +0000
commitf5397f79160202fff5f0c6c852569b1bdccf0438 (patch)
treeabe3139d16f7f8d4b4e7ed97f1edf284d00dde0a /sys/net/pf.c
parent6ccfd26e7bf022bba7930919f56bf82f4e7ccb9a (diff)
make pfsync a clonable too, but prevent more than one instance from
beeing created for now - much more work would be required to change that input & ok ryan
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 344e4ae3352..7db562e6291 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.517 2006/10/27 13:56:51 mcbride Exp $ */
+/* $OpenBSD: pf.c,v 1.518 2006/10/31 14:49:01 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1006,8 +1006,9 @@ void
pf_free_state(struct pf_state *cur)
{
#if NPFSYNC
- if (pfsyncif.sc_bulk_send_next == cur ||
- pfsyncif.sc_bulk_terminator == cur)
+ if (pfsyncif != NULL &&
+ (pfsyncif->sc_bulk_send_next == cur ||
+ pfsyncif->sc_bulk_terminator == cur))
return;
#endif
KASSERT(cur->timeout == PFTM_UNLINKED);