diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-02-16 16:19:57 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-02-16 16:19:57 +0000 |
commit | 258218c157856e36cfaf957f5bf9717ca7ad8fbb (patch) | |
tree | 08e797ad7c0551c4a74b366a156fdc2fe13cef73 | |
parent | d01c47a414a8b960a2a1cbaf6dc6756618bb2f70 (diff) |
protect router list management by splsoftnet properly. sync with kame
-rw-r--r-- | sys/netinet6/nd6_rtr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index d3018656c7e..0bdd938795f 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6_rtr.c,v 1.8 2001/02/07 11:43:55 itojun Exp $ */ +/* $OpenBSD: nd6_rtr.c,v 1.9 2001/02/16 16:19:56 itojun Exp $ */ /* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */ /* @@ -807,7 +807,6 @@ prelist_remove(pr) /* unlink ndpr_entry from nd_prefix list */ LIST_REMOVE(pr, ndpr_entry); - splx(s); /* free list of routers that adversed the prefix */ for (pfr = pr->ndpr_advrtrs.lh_first; pfr; pfr = next) { @@ -815,6 +814,8 @@ prelist_remove(pr) free(pfr, M_IP6NDP); } + splx(s); + free(pr, M_IP6NDP); pfxlist_onlink_check(); |