Skip to content
Snippets Groups Projects
Commit a63b16a0 authored by Morris Jette's avatar Morris Jette
Browse files

topology/tree: prevent infinite loop if not tree

parent 2973524c
No related branches found
No related tags found
No related merge requests found
......@@ -375,6 +375,8 @@ static void _validate_switches(void)
}
if (resolved)
break;
if (depth > 20) /* Prevent infinite loop */
fatal("Switch configuration is not a tree");
}
switch_levels = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment