Merge pull request #13610 from yuwata/network-check-one-more-section

network: assorted follow-ups
This commit is contained in:
Yu Watanabe
2019-09-22 07:18:28 +02:00
committed by GitHub
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -300,6 +300,10 @@ int network_verify(Network *network) {
if (section_is_invalid(prefix->section))
prefix_free(prefix);
LIST_FOREACH_SAFE(prefixes, prefix, prefix_next, network->static_route_prefixes)
if (section_is_invalid(prefix->section))
prefix_free(prefix);
LIST_FOREACH_SAFE(rules, rule, rule_next, network->rules)
if (routing_policy_rule_section_verify(rule) < 0)
routing_policy_rule_free(rule);