summaryrefslogtreecommitdiff
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-04-03 15:27:18 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-04-03 15:27:18 +0000
commit223908311873fe26f497c78746a7f9782d34d29d (patch)
treec67daf1aaa41043c79fcdbbdbf4af336df0192c3 /sys/net/pf_ioctl.c
parent6188288ddd3ad908000242292874c60fdc48ed06 (diff)
Back out my last change, which was incorrect or incomplete.
States can still be created without a rule for people who have only NAT rules, for example.
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r--sys/net/pf_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index 8fb5955c979..25b4cef0a33 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.52 2003/04/03 13:17:24 cedric Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.53 2003/04/03 15:27:17 cedric Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -963,7 +963,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
break;
}
bcopy(n->state, &ps->state, sizeof(struct pf_state));
- if (n->state->rule.ptr->entries.tqe_prev == NULL)
+ if (n->state->rule.ptr == NULL)
ps->state.rule.nr = -1;
else
ps->state.rule.nr = n->state->rule.ptr->nr;
@@ -1002,7 +1002,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
break;
bcopy(n->state, &pstore, sizeof(pstore));
- if (n->state->rule.ptr->entries.tqe_prev == NULL)
+ if (n->state->rule.ptr == NULL)
pstore.rule.nr = -1;
else
pstore.rule.nr = n->state->rule.ptr->nr;