diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2007-05-31 06:22:41 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2007-05-31 06:22:41 +0000 |
commit | b3485a3931c6c71a9c1a510da2b58847e3219cdd (patch) | |
tree | 59fb17d9b62d0a2072b7f0d2178831e643f460b3 /sys/net | |
parent | 03f8374bf73ae30504c2fe4817a18f58c7b76568 (diff) |
Unbreak pf.c compilation on gcc 2.95 architectures. Found by todd@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 99d88eeb128..c3c6182a10c 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.535 2007/05/31 04:11:42 mcbride Exp $ */ +/* $OpenBSD: pf.c,v 1.536 2007/05/31 06:22:40 mcbride Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -798,10 +798,12 @@ pf_insert_src_node(struct pf_src_node **sn, struct pf_rule *rule, int pf_insert_state(struct pfi_kif *kif, struct pf_state *s) { + struct pf_state_key *sk; + KASSERT(s->state_key != NULL); + sk = s->state_key; /* Thou MUST NOT insert multiple duplicate keys */ - struct pf_state_key *sk = s->state_key; s->u.s.kif = kif; if (RB_INSERT(pf_state_tree_lan_ext, &kif->pfik_lan_ext, sk)) { if (pf_status.debug >= PF_DEBUG_MISC) { |