diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-06 17:28:33 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-06 17:28:33 +0000 |
commit | 7eaa724b45d0826b73a65838668a14035d70761c (patch) | |
tree | 8f81598413fa61fa82e91cc543710bbe192e11bb | |
parent | e15c6eb621aea6dc00949a71d4cec5019e5cb98f (diff) |
fix vlan destroy for MROUTING; report spamme@wouz.dk via tedu; ok itojun
-rw-r--r-- | sys/netinet/ip_mroute.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 1dc9123d359..95d8d539f74 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_mroute.c,v 1.35 2004/01/03 14:08:53 espie Exp $ */ +/* $OpenBSD: ip_mroute.c,v 1.36 2004/01/06 17:28:32 markus Exp $ */ /* $NetBSD: ip_mroute.c,v 1.27 1996/05/07 02:40:50 thorpej Exp $ */ /* @@ -755,6 +755,8 @@ vif_delete(ifp) numvifs = i; for (i = 0; i < MFCTBLSIZ; i++) { + if (nexpire[i] == 0) + continue; LIST_FOREACH(rt, &mfchashtbl[i], mfc_hash) { for (rte = rt->mfc_stall; rte; rte = rte->next) { if (rte->ifp == ifp) |