1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 20:25:25 +03:00

networkd: address config add error checking

We not looking for hashmap_put return error code.
This commit is contained in:
Susant Sahani 2017-02-22 11:11:28 +05:30
parent fcc48287eb
commit f7fe70ea31

View File

@ -87,7 +87,9 @@ int address_new_static(Network *network, const char *filename, unsigned section_
address->section = n;
n = NULL;
hashmap_put(network->addresses_by_section, address->section, address);
r = hashmap_put(network->addresses_by_section, address->section, address);
if (r < 0)
return r;
}
address->network = network;