protect router list management by splsoftnet properly. sync with kame
This commit is contained in:
parent
a317219c0b
commit
f99a50f858
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nd6_rtr.c,v 1.20 2001/02/07 08:59:49 itojun Exp $ */
|
||||
/* $NetBSD: nd6_rtr.c,v 1.21 2001/02/11 07:12:01 itojun Exp $ */
|
||||
/* $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -804,7 +804,6 @@ prelist_remove(pr)
|
|||
s = splsoftnet();
|
||||
/* 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) {
|
||||
|
@ -812,6 +811,8 @@ prelist_remove(pr)
|
|||
|
||||
free(pfr, M_IP6NDP);
|
||||
}
|
||||
splx(s);
|
||||
|
||||
free(pr, M_IP6NDP);
|
||||
|
||||
pfxlist_onlink_check();
|
||||
|
|
Loading…
Reference in New Issue