From 0c8d8ae7a059608c771d48b4a43e001ff51c5d26 Mon Sep 17 00:00:00 2001 From: itojun Date: Sun, 25 Mar 2001 09:06:03 +0000 Subject: [PATCH] couple of missing splx. sync with kame. From: csapuntz@play-doh.stanford.edu (Constantine Sapuntzakis) --- sys/netinet6/in6_prefix.c | 8 +++++--- sys/netinet6/ip6_mroute.c | 17 +++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/sys/netinet6/in6_prefix.c b/sys/netinet6/in6_prefix.c index d6310e1d0630..8e8dd54c2be9 100644 --- a/sys/netinet6/in6_prefix.c +++ b/sys/netinet6/in6_prefix.c @@ -1,5 +1,5 @@ -/* $NetBSD: in6_prefix.c,v 1.14 2001/02/10 04:14:27 itojun Exp $ */ -/* $KAME: in6_prefix.c,v 1.29 2000/06/07 05:59:38 itojun Exp $ */ +/* $NetBSD: in6_prefix.c,v 1.15 2001/03/25 09:06:03 itojun Exp $ */ +/* $KAME: in6_prefix.c,v 1.47 2001/03/25 08:41:39 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -950,8 +950,10 @@ delete_each_prefix(struct rr_prefix *rpp, u_char origin) s = splsoftnet(); rap = LIST_FIRST(&rpp->rp_addrhead); - if (rap == NULL) + if (rap == NULL) { + splx(s); break; + } LIST_REMOVE(rap, ra_entry); splx(s); if (rap->ra_addr == NULL) { diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 0de57a698eba..1c234c620ca8 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -1,5 +1,5 @@ -/* $NetBSD: ip6_mroute.c,v 1.19 2001/03/08 10:48:40 itojun Exp $ */ -/* $KAME: ip6_mroute.c,v 1.42 2001/03/08 08:27:48 jinmei Exp $ */ +/* $NetBSD: ip6_mroute.c,v 1.20 2001/03/25 09:06:03 itojun Exp $ */ +/* $KAME: ip6_mroute.c,v 1.45 2001/03/25 08:38:51 itojun Exp $ */ /* * Copyright (C) 1998 WIDE Project. @@ -1485,28 +1485,25 @@ phyint_send(ip6, mifp, m) log(LOG_DEBUG, "phyint_send on mif %d err %d\n", mifp - mif6table, error); #endif - } - else { + } else { #ifdef MULTICAST_PMTUD icmp6_error(mb_copy, ICMP6_PACKET_TOO_BIG, 0, ifp->if_mtu); - splx(s); - return; #else #ifdef MRT6DEBUG - if (mrt6debug & DEBUG_DEBUG_XMIT) + if (mrt6debug & DEBUG_XMIT) log(LOG_DEBUG, "phyint_send: packet too big on %s o %s g %s" " size %d(discarded)\n", - ifp->if_xname, + if_name(ifp), ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst), mb_copy->m_pkthdr.len); #endif /* MRT6DEBUG */ m_freem(mb_copy); /* simply discard the packet */ - splx(s); - return; #endif } + + splx(s); } static int