From 741e5877ef31d83439e23608e2571e7fae034ca2 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Fri, 23 Dec 2016 15:08:55 +0000 Subject: 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@ --- sys/netinet6/nd6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys') 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) { -- cgit v1.2.3