summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/server')
-rw-r--r--xlators/protocol/server/src/server-handshake.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c
index c40409e8d0b..9f4b2509ea8 100644
--- a/xlators/protocol/server/src/server-handshake.c
+++ b/xlators/protocol/server/src/server-handshake.c
@@ -535,6 +535,8 @@ server_setvolume (rpcsvc_request_t *req)
LOCK (&ctx->volfile_lock);
{
xl = get_xlator_by_name (this, name);
+ if (!xl)
+ xl = this;
}
UNLOCK (&ctx->volfile_lock);
if (xl == NULL) {