1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00

Merge pull request #9388 from cgundogan/pr/rpl_event_dels

gnrc_rpl: remove events from the queue before memset()
This commit is contained in:
Martine Lenders 2018-06-21 11:02:49 +02:00 committed by GitHub
commit 8e8837afa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,8 @@ bool gnrc_rpl_instance_remove(gnrc_rpl_instance_t *inst)
#endif
gnrc_rpl_dodag_remove_all_parents(dodag);
trickle_stop(&dodag->trickle);
evtimer_del(&gnrc_rpl_evtimer, (evtimer_event_t *)&dodag->dao_event);
evtimer_del(&gnrc_rpl_evtimer, (evtimer_event_t *)&inst->cleanup_event);
memset(inst, 0, sizeof(gnrc_rpl_instance_t));
return true;
}