summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quotad-aggregator.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/quota/src/quotad-aggregator.c')
-rw-r--r--xlators/features/quota/src/quotad-aggregator.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c
index 0363135f..d3afd443 100644
--- a/xlators/features/quota/src/quotad-aggregator.c
+++ b/xlators/features/quota/src/quotad-aggregator.c
@@ -223,10 +223,18 @@ quotad_aggregator_init (xlator_t *this)
priv = this->private;
- dict_set_str (this->options, "transport.address-family", "unix");
- dict_set_str (this->options, "transport-type", "socket");
- dict_set_str (this->options, "transport.socket.listen-path",
- "/tmp/quotad.socket");
+ ret = dict_set_str (this->options, "transport.address-family", "unix");
+ if (ret)
+ goto out;
+
+ ret = dict_set_str (this->options, "transport-type", "socket");
+ if (ret)
+ goto out;
+
+ ret = dict_set_str (this->options, "transport.socket.listen-path",
+ "/tmp/quotad.socket");
+ if (ret)
+ goto out;
/* RPC related */
priv->rpcsvc = rpcsvc_init (this, this->ctx, this->options, 0);