FIX for modified topology db
authorHenning Rogge <hrogge@googlemail.com>
Thu, 11 Jun 2009 11:00:43 +0000 (13:00 +0200)
committerHenning Rogge <hrogge@googlemail.com>
Thu, 11 Jun 2009 11:00:43 +0000 (13:00 +0200)
src/tc_set.c

index 69b94cd..fc1a762 100644 (file)
@@ -488,13 +488,13 @@ olsr_add_tc_edge_entry(struct tc_entry *tc, union olsr_ip_addr *addr, uint16_t a
       tc_edge_inv = olsr_add_tc_edge_entry(tc_neighbor, &tc->addr, 0);
 
       tc_edge_inv->is_virtual = 1;
-
-      /*
-       * Connect the edges mutually.
-       */
-      tc_edge_inv->edge_inv = tc_edge;
-      tc_edge->edge_inv = tc_edge_inv;
     }
+
+    /*
+     * Connect the edges mutually.
+     */
+    tc_edge_inv->edge_inv = tc_edge;
+    tc_edge->edge_inv = tc_edge_inv;
   }
 
   /*