summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs/server')
-rw-r--r--xlators/nfs/server/src/mount3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c
index 47158dccad4..2e4a7390849 100644
--- a/xlators/nfs/server/src/mount3.c
+++ b/xlators/nfs/server/src/mount3.c
@@ -767,10 +767,11 @@ mnt3svc_mnt (rpcsvc_request_t *req)
}
ret = mnt3_check_client_net (ms, req, exp->vol);
- if (ret == -1) {
+ if (ret == RPCSVC_AUTH_REJECT) {
mntstat = MNT3ERR_ACCES;
gf_log (GF_MNT, GF_LOG_DEBUG, "Client mount not allowed");
- goto rpcerr;
+ ret = -1;
+ goto mnterr;
}
ret = mnt3svc_mount (req, ms, exp);