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 9dd3fa5df7e94537ed80a94fdebf672f9784f53c..be6080e07ad97b8002f681b37cadae7537cd51ff 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;