summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol')
-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 c40409e..9f4b250 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) {