summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-12-23 15:08:55 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-12-23 15:08:55 +0000
commit741e5877ef31d83439e23608e2571e7fae034ca2 (patch)
tree0f59e554c010c1922f3aa6d7dd5064f802717955 /sys/netinet6
parent063aed97c4f0588b8795f9e1ce750c3a1e1caf94 (diff)
Do not call timeout_set(9) multiple times for nd6_slowtimo(), especially
whem timeout_set_proc(9) is what we need. Found the hardway by and ok visa@, ok mikeb@, bluhm@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index f8135150e42..40e4bfc96c7 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.c,v 1.200 2016/12/22 13:39:32 mpi Exp $ */
+/* $OpenBSD: nd6.c,v 1.201 2016/12/23 15:08:54 mpi Exp $ */
/* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */
/*
@@ -1479,7 +1479,6 @@ nd6_slowtimo(void *ignored_arg)
NET_LOCK(s);
- timeout_set(&nd6_slowtimo_ch, nd6_slowtimo, NULL);
timeout_add_sec(&nd6_slowtimo_ch, ND6_SLOWTIMER_INTERVAL);
TAILQ_FOREACH(ifp, &ifnet, if_list) {