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:
parent
fcc48287eb
commit
f7fe70ea31
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user