Use the correct next pointer.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 12 Dec 2006 14:54:39 +0000 (14:54 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 12 Dec 2006 14:54:39 +0000 (14:54 +0000)
src/graph.c

index 9dd3fa5..be6080e 100644 (file)
@@ -101,7 +101,7 @@ void mst_kruskal(void)
 
        /* Starting point */
 
-       for(node = edge_weight_tree->head; node; node = next) {
+       for(node = edge_weight_tree->head; node; node = node->next) {
                e = node->data;
                if(e->from->status.reachable) {
                        e->from->status.visited = true;