diff options
Diffstat (limited to 'xlators/features/quota/src/quota-enforcer-client.c')
-rw-r--r-- | xlators/features/quota/src/quota-enforcer-client.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/xlators/features/quota/src/quota-enforcer-client.c b/xlators/features/quota/src/quota-enforcer-client.c index 15dc9e4d..9dcd8dc5 100644 --- a/xlators/features/quota/src/quota-enforcer-client.c +++ b/xlators/features/quota/src/quota-enforcer-client.c @@ -315,10 +315,18 @@ quota_enforcer_init (xlator_t *this, dict_t *options) priv = this->private; priv->quota_enforcer = "a_enforcer_clnt; - dict_set_str (options, "transport.address-family", "unix"); - dict_set_str (options, "transport-type", "socket"); - dict_set_str (options, "transport.socket.connect-path", - "/tmp/quotad.socket"); + ret = dict_set_str (options, "transport.address-family", "unix"); + if (ret) + goto out; + + ret = dict_set_str (options, "transport-type", "socket"); + if (ret) + goto out; + + ret = dict_set_str (options, "transport.socket.connect-path", + "/tmp/quotad.socket"); + if (ret) + goto out; rpc = rpc_clnt_new (options, this->ctx, this->name, 16); if (!rpc) |