diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2004-03-18 23:24:03 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2004-03-18 23:24:03 +0000 |
commit | 5aafb62ee99866067da199675ce0e1c097461bc7 (patch) | |
tree | c817244fd127ddbef6406539ae920fca6755abf3 /sys/net/pf_ioctl.c | |
parent | 7e2b18d06ceab37d9dbeabd704454bf5b0ff0d90 (diff) |
state->rule.ptr shall not be NULL. from Jon Coller. ok dhartmei@ mcbride@
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r-- | sys/net/pf_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index 3fcfbc6934c..b93b14cd9b0 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.110 2004/03/15 10:59:07 henning Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.111 2004/03/18 23:24:02 cedric Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1359,7 +1359,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) } bcopy(&ps->state, state, sizeof(struct pf_state)); bzero(&state->u, sizeof(state->u)); - state->rule.ptr = NULL; + state->rule.ptr = &pf_default_rule; state->nat_rule.ptr = NULL; state->anchor.ptr = NULL; state->rt_kif = NULL; |