]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/test-networkd-conf.c
network: drop sections contain invalid settings in network_verify()
[thirdparty/systemd.git] / src / network / test-networkd-conf.c
index 86d4e7e733fa684125f1bd8020e7631aa276fa1e..3adfdab2bf8442388dabb19fc72be2bb1cd06625 100644 (file)
@@ -173,7 +173,7 @@ static void test_config_parse_address_one(const char *rvalue, int family, unsign
 
         assert_se(network = new0(Network, 1));
         assert_se(config_parse_address("network", "filename", 1, "section", 1, "Address", 0, rvalue, network, network) == 0);
-        assert_se(network->n_static_addresses == n_addresses);
+        assert_se(network->n_static_addresses == 1);
         if (n_addresses > 0) {
                 assert_se(network->static_addresses);
                 assert_se(network->static_addresses->prefixlen == prefixlen);