FIX: double free between rt_path and rt_entry lists because of
authorHenning Rogge <hrogge@googlemail.com>
Sat, 28 Feb 2009 09:39:00 +0000 (10:39 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Sat, 28 Feb 2009 09:39:00 +0000 (10:39 +0100)
different keys (ip_prefix and ip).

src/routing_table.c

index 521cd9e..c1541b6 100644 (file)
@@ -383,7 +383,7 @@ olsr_insert_rt_path(struct rt_path *rtp, struct tc_entry *tc,
   rtp->rtp_tree_node.key = &rtp->rtp_originator;
 
   /* insert to the route entry originator tree */
-  avl_insert(&rt->rt_path_tree, &rtp->rtp_tree_node, AVL_DUP_NO);
+  avl_insert(&rt->rt_path_tree, &rtp->rtp_tree_node, AVL_DUP);
 
   /* backlink to the owning route entry */
   rtp->rtp_rt = rt;