diff options
-rw-r--r-- | sys/net/pf_if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c index bf71355a1e6..a3f62e1ea52 100644 --- a/sys/net/pf_if.c +++ b/sys/net/pf_if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_if.c,v 1.50 2007/09/27 22:24:05 mpf Exp $ */ +/* $OpenBSD: pf_if.c,v 1.51 2007/11/07 17:28:40 mpf Exp $ */ /* * Copyright 2005 Henning Brauer <henning@openbsd.org> @@ -633,6 +633,8 @@ pfi_update_status(const char *name, struct pf_status *pfs) bzero(pfs->bcounters, sizeof(pfs->bcounters)); } TAILQ_FOREACH(ifgm, &ifg_members, ifgm_next) { + if (ifgm->ifgm_ifp == NULL) + continue; p = (struct pfi_kif *)ifgm->ifgm_ifp->if_pf_kif; /* just clear statistics */ |