summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/legacy/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/legacy/server/src')
-rw-r--r--xlators/protocol/legacy/server/src/server-helpers.c5
-rw-r--r--xlators/protocol/legacy/server/src/server-protocol.c3
-rw-r--r--xlators/protocol/legacy/server/src/server-protocol.h1
3 files changed, 8 insertions, 1 deletions
diff --git a/xlators/protocol/legacy/server/src/server-helpers.c b/xlators/protocol/legacy/server/src/server-helpers.c
index 79104752ff1..08f89af5aba 100644
--- a/xlators/protocol/legacy/server/src/server-helpers.c
+++ b/xlators/protocol/legacy/server/src/server-helpers.c
@@ -86,6 +86,11 @@ free_old_server_state (server_state_t *state)
state->fd = NULL;
}
+ if (state->params) {
+ dict_unref (state->params);
+ state->params = NULL;
+ }
+
if (state->iobref) {
iobref_unref (state->iobref);
state->iobref = NULL;
diff --git a/xlators/protocol/legacy/server/src/server-protocol.c b/xlators/protocol/legacy/server/src/server-protocol.c
index 56acc59b791..1fbe86923a0 100644
--- a/xlators/protocol/legacy/server/src/server-protocol.c
+++ b/xlators/protocol/legacy/server/src/server-protocol.c
@@ -2885,7 +2885,8 @@ server_create_resume (call_frame_t *frame, xlator_t *bound_xl)
STACK_WIND (frame, server_create_cbk,
bound_xl, bound_xl->fops->create,
- &(state->loc), state->flags, state->mode, state->fd);
+ &(state->loc), state->flags, state->mode,
+ state->fd, state->params);
return 0;
err:
diff --git a/xlators/protocol/legacy/server/src/server-protocol.h b/xlators/protocol/legacy/server/src/server-protocol.h
index 56d23fdbfab..13691287132 100644
--- a/xlators/protocol/legacy/server/src/server-protocol.h
+++ b/xlators/protocol/legacy/server/src/server-protocol.h
@@ -163,6 +163,7 @@ struct _server_state {
int valid;
fd_t *fd;
+ dict_t *params;
int flags;
int wbflags;
struct iobuf *iobuf;