summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2017-02-22 11:11:28 +0530
committerSusant Sahani <susant@redhat.com>2017-02-22 11:11:28 +0530
commitf7fe70ea310d159754750fc3acac0e3f6aae67be (patch)
tree08b1943119298ecb20bd30f9102b628f9fc67d11
parentfcc48287eb6166b87a80da87d383d013f6dec7e1 (diff)
networkd: address config add error checking
We not looking for hashmap_put return error code.
-rw-r--r--src/network/networkd-address.c4
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;