summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r--xlators/protocol/client/src/client-helpers.c2
-rw-r--r--xlators/protocol/client/src/client.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client-helpers.c b/xlators/protocol/client/src/client-helpers.c
index 4c1ac1baa..f1c7c71cd 100644
--- a/xlators/protocol/client/src/client-helpers.c
+++ b/xlators/protocol/client/src/client-helpers.c
@@ -190,6 +190,8 @@ unserialize_rsp_direntp (xlator_t *this, fd_t *fd,
if (!buf)
goto out;
+ entry->dict = dict_new ();
+
ret = dict_unserialize (buf, trav->dict.dict_len,
&entry->dict);
if (ret < 0) {
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c
index 9a4945227..d93a99cff 100644
--- a/xlators/protocol/client/src/client.c
+++ b/xlators/protocol/client/src/client.c
@@ -1792,7 +1792,7 @@ client_readdirp (call_frame_t *frame, xlator_t *this, fd_t *fd,
args.fd = fd;
args.size = size;
args.offset = off;
- args.xattr_req = dict;
+ args.dict = dict;
proc = &conf->fops->proctable[GF_FOP_READDIRP];
if (!proc) {