summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 5714e44e1f4..aa8892784df 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -3499,13 +3499,11 @@ glusterd_friend_rpc_create(xlator_t *this, glusterd_peerinfo_t *peerinfo,
data = dict_getn(this->options, "transport.socket.bind-address",
SLEN("transport.socket.bind-address"));
if (data) {
- ret = dict_setn(options, "transport.socket.source-addr",
- SLEN("transport.socket.source-addr"), data);
+ ret = dict_set_sizen(options, "transport.socket.source-addr", data);
}
data = dict_getn(this->options, "ping-timeout", SLEN("ping-timeout"));
if (data) {
- ret = dict_setn(options, "ping-timeout", SLEN("ping-timeout"),
- data);
+ ret = dict_set_sizen(options, "ping-timeout", data);
}
}