tc: properly initialise the path_costs field in a new tc
authorHenning Rogge <hrogge@gmail.com>
Mon, 16 Feb 2015 10:32:37 +0000 (11:32 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 17 Feb 2015 10:58:37 +0000 (11:58 +0100)
Signed-off-by: Henning Rogge <hrogge@gmail.com>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/tc_set.c

index 2e9cd52..ce0fda1 100644 (file)
@@ -157,6 +157,7 @@ olsr_add_tc_entry(union olsr_ip_addr *adr)
   /* Fill entry */
   tc->addr = *adr;
   tc->vertex_node.key = &tc->addr;
+  tc->path_cost = ROUTE_COST_BROKEN;
 
   /*
    * Insert into the global tc tree.