From d160943f16c014c8e5c6ed2b2f80a5f249c4d19b Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Fri, 28 Nov 2014 23:17:16 +0100 Subject: [PATCH] Bug fix: Stop the DAO lifetime timer in RPL instances when released. Clearing the memory for an active etimer/ctimer might corrupt the timer list and cause other timers to be lost or infinite loops. The DAO lifetime timer is only used when RPL route lifetime is not infinite but then the timer will cause problems if not stopped. --- core/net/rpl/rpl-dag.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/net/rpl/rpl-dag.c b/core/net/rpl/rpl-dag.c index 3869fdc7e..081326f02 100644 --- a/core/net/rpl/rpl-dag.c +++ b/core/net/rpl/rpl-dag.c @@ -513,6 +513,7 @@ rpl_free_instance(rpl_instance_t *instance) ctimer_stop(&instance->dio_timer); ctimer_stop(&instance->dao_timer); + ctimer_stop(&instance->dao_lifetime_timer); if(default_instance == instance) { default_instance = NULL;