summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/nfs/server/src/mount3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c
index db416be6090..b171d2ce138 100644
--- a/xlators/nfs/server/src/mount3.c
+++ b/xlators/nfs/server/src/mount3.c
@@ -696,6 +696,9 @@ __mnt3_build_mountid_from_path (const char *path, uuid_t mountid)
uint32_t hashed_path = 0;
int ret = -1;
+ if (!path)
+ goto out;
+
while (strlen (path) > 0 && path[0] == '/')
path++;