summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-12-22 11:17:20 +0000
committermpi <mpi@openbsd.org>2014-12-22 11:17:20 +0000
commit43cf78cc47da50662187718a9c3e4e9b8ee5e870 (patch)
treefbbf19cb4685c2112b3bb9f90a752c0862b37443
parentMake sure rtrequest1(9) is called under splsoftnet(). (diff)
downloadwireguard-openbsd-43cf78cc47da50662187718a9c3e4e9b8ee5e870.tar.xz
wireguard-openbsd-43cf78cc47da50662187718a9c3e4e9b8ee5e870.zip
Operations on the global prefix or address lists should be done under
splsoftnet().
-rw-r--r--sys/netinet6/nd6_rtr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index c77c9cbbdec..f6e4b9c20dc 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_rtr.c,v 1.95 2014/12/22 11:05:53 mpi Exp $ */
+/* $OpenBSD: nd6_rtr.c,v 1.96 2014/12/22 11:17:20 mpi Exp $ */
/* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */
/*
@@ -1050,7 +1050,6 @@ nd6_prelist_add(struct nd_prefix *pr, struct nd_defrouter *dr,
s = splsoftnet();
/* link ndpr_entry to nd_prefix list */
LIST_INSERT_HEAD(&nd_prefix, new, ndpr_entry);
- splx(s);
/* ND_OPT_PI_FLAG_ONLINK processing */
if (new->ndpr_raf_onlink) {
@@ -1069,6 +1068,7 @@ nd6_prelist_add(struct nd_prefix *pr, struct nd_defrouter *dr,
if (dr)
pfxrtr_add(new, dr);
+ splx(s);
ext->nprefixes++;