diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2005-08-07 11:36:00 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2005-08-07 11:36:00 +0000 |
commit | bb93c737346f696678495a8530601b1190179fde (patch) | |
tree | 7ef4425a313dba3dc629f593c592b803051eccb7 | |
parent | cb4edda8a94ef89ed19c56053b5c007a5f03afb0 (diff) |
Reset kif->pfik_ifp to NULL before calling pfi_kif_unref(), similar change
to that in rev 1.40 for interface groups.
ok henning
-rw-r--r-- | sys/net/pf_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c index 8850cd2b9d7..b2aeb1999a6 100644 --- a/sys/net/pf_if.c +++ b/sys/net/pf_if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_if.c,v 1.41 2005/08/02 12:40:42 pascoe Exp $ */ +/* $OpenBSD: pf_if.c,v 1.42 2005/08/07 11:35:59 pascoe Exp $ */ /* * Copyright 2005 Henning Brauer <henning@openbsd.org> @@ -235,9 +235,9 @@ pfi_detach_ifnet(struct ifnet *ifp) TAILQ_FOREACH(dyn, &kif->pfik_dynaddrs, entry) pfi_dynaddr_update(dyn); - pfi_kif_unref(kif, PFI_KIF_REF_NONE); kif->pfik_ifp = NULL; ifp->if_pf_kif = NULL; + pfi_kif_unref(kif, PFI_KIF_REF_NONE); splx(s); } |