]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
network: Add more debugging output when running exclude
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Mar 2022 15:18:35 +0000 (15:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Mar 2022 15:18:35 +0000 (15:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c
src/network.c

index 1b3484592e3c08c484c80f8d01db0217d616c1e9..b57407eb860250ad634a9a5922e94d9c18c4f255 100644 (file)
@@ -1370,7 +1370,7 @@ static int __loc_database_enumerator_next_network_flattened(
        struct loc_network_list* excluded = loc_network_exclude_list(*network, enumerator->subnets);
        if (!excluded) {
                loc_network_list_clear(enumerator->subnets);
-               return -1;
+               return 1;
        }
 
        // Merge subnets onto the stack
index 0b469e24cb5947c935cb1d3b5f78491deaaccaf3..98c7558b2b3e7ef3fd09297728d3ed80a9f916af 100644 (file)
@@ -406,6 +406,9 @@ ERROR:
        if (subnet2)
                loc_network_unref(subnet2);
 
+       if (r)
+               DEBUG(network->ctx, "%s has failed with %d\n", __FUNCTION__, r);
+
        return r;
 }