Commit 098d871b authored by Michael Tremer's avatar Michael Tremer

database: Return something when no filter criteria is configured

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 35e5f041
......@@ -1168,6 +1168,10 @@ static int loc_database_enumerator_match_network(
return 0;
}
// Match if no filter criteria is configured
if (!enumerator->countries && !enumerator->asns && !enumerator->flags)
return 1;
// Check if the country code matches
if (enumerator->countries && !loc_country_list_empty(enumerator->countries)) {
const char* country_code = loc_network_get_country_code(network);
......
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