Commit 0905528e authored by Michael Tremer's avatar Michael Tremer

network-list: summarize: Break when we exhausted the network range

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent a7c71d80
......@@ -374,6 +374,11 @@ int loc_network_list_summarize(struct loc_ctx* ctx,
// The next network starts right after this one
start = *loc_network_get_last_address(network);
// If we have reached the end of possible IP addresses, we stop
if (loc_address_all_ones(&start))
break;
loc_address_increment(&start);
}
......
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