summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-06-06 06:57:24 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-06-06 06:57:24 +0000
commit9a972f2f9c3456f1145ab98b64b20eed43ec0493 (patch)
tree5b0725f512688c2e2d0b57afa5ea253660fff560
parentd4d3aa85284692a12d91084258b786e916df19e5 (diff)
don't try to forward multicast packet to mif that went away; kame
-rw-r--r--sys/netinet6/ip6_mroute.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index c12dcaf4bbd..9bacf231f2a 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_mroute.c,v 1.37 2003/06/03 06:24:22 itojun Exp $ */
+/* $OpenBSD: ip6_mroute.c,v 1.38 2003/06/06 06:57:23 itojun Exp $ */
/* $KAME: ip6_mroute.c,v 1.45 2001/03/25 08:38:51 itojun Exp $ */
/*
@@ -1421,6 +1421,9 @@ ip6_mdq(m, ifp, rt)
*/
for (mifp = mif6table, mifi = 0; mifi < nummifs; mifp++, mifi++)
if (IF_ISSET(mifi, &rt->mf6c_ifset)) {
+ if (mif6table[mifi].m6_ifp == NULL)
+ continue;
+
/*
* check if the outgoing packet is going to break
* a scope boundary.