diff options
-rw-r--r-- | src/network/networkd-address.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index e872b36009..e34793e50b 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -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; |