Commit fe483cdc authored by Michael Tremer's avatar Michael Tremer

Mark all nodes as non-visited after walk through tree has completed

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 91d89020
...@@ -778,7 +778,10 @@ static int loc_database_enumerator_network_depth_first_search( ...@@ -778,7 +778,10 @@ static int loc_database_enumerator_network_depth_first_search(
} }
// Reached the end of the search // Reached the end of the search
// TODO cleanup
// Mark all nodes as non-visited
for (unsigned int i = 0; i < e->db->network_nodes_count; i++)
e->networks_visited[i] = 0;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment