bugfix: add duplicate key support for cookie names
authorHannes Gredler <hannes@gredler.at>
Wed, 10 Jun 2009 07:44:40 +0000 (09:44 +0200)
committerHannes Gredler <hannes@gredler.at>
Wed, 10 Jun 2009 07:44:40 +0000 (09:44 +0200)
timer and memory cookies often share the same name.

src/olsr_cookie.c

index 97d74b2..8d3dbf6 100644 (file)
@@ -87,7 +87,7 @@ olsr_alloc_cookie(const char *cookie_name, olsr_cookie_type cookie_type)
     ci->ci_membrand = 0;
   }
 
-  avl_insert(&olsr_cookie_tree, &ci->node, AVL_DUP_NO);
+  avl_insert(&olsr_cookie_tree, &ci->node, AVL_DUP);
   return ci;
 }