Cleanup hna-timeout when removing entry
authorHenning Rogge <hrogge@googlemail.com>
Sun, 23 Aug 2009 10:49:21 +0000 (12:49 +0200)
committerHenning Rogge <hrogge@googlemail.com>
Sun, 23 Aug 2009 10:49:21 +0000 (12:49 +0200)
src/hna_set.c

index 5e08af9..cd6a294 100644 (file)
@@ -133,6 +133,10 @@ olsr_delete_hna_net(struct hna_net *hna_net)
    */
   avl_delete(&tc->hna_tree, &hna_net->hna_tc_node);
 
+  if (hna_net->hna_net_timer) {
+    olsr_stop_timer(hna_net->hna_net_timer);
+    hna_net->hna_net_timer = NULL;
+  }
   /*
    * Unlock and free.
    */