summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs/server')
-rw-r--r--xlators/nfs/server/src/nfs3-helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
index 2e0274624..15953438a 100644
--- a/xlators/nfs/server/src/nfs3-helpers.c
+++ b/xlators/nfs/server/src/nfs3-helpers.c
@@ -100,11 +100,11 @@ nfs3_iatt_gfid_to_ino (struct iatt *buf)
return 0;
if (buf->ia_ino != 1)
- memcpy (&buf->ia_ino, &buf->ia_gfid[8], sizeof (uint64_t));
+ memcpy (&ino, &buf->ia_gfid[8], sizeof (uint64_t));
else
ino = 1;
- return buf->ia_ino;
+ return ino;
}