summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIra Cooper <ira@samba.org>2014-01-24 09:25:58 -0500
committerAnand Avati <avati@redhat.com>2014-01-24 23:56:28 -0800
commit0f6fb218e41e3f5d2a1b76b217197b2ca7597ff7 (patch)
tree6d86c46f140041ff956beee032b13c4fbd61a574
parent580d91eb563e8d8a9eb11dbe1c285541c70dbe16 (diff)
nfs/server: Logic error in mount tab handling.
This error likely causes a double free and also a memory leak. Change-Id: I299209a8b5bf8aaf487e52e9a4f00948e1d40eb5 CID: 1124703 BUG: 789278 Signed-off-by: Ira Cooper <ira@samba.org> Reviewed-on: http://review.gluster.org/6778 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--xlators/nfs/server/src/mount3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c
index e86235522..47ff3845e 100644
--- a/xlators/nfs/server/src/mount3.c
+++ b/xlators/nfs/server/src/mount3.c
@@ -469,7 +469,7 @@ mount_rewrite_rmtab (struct mount3_state *ms, char *new_rmtab)
"%s as rmtab", nfs->rmtab);
} else {
GF_FREE (nfs->rmtab);
- nfs->rmtab = new_rmtab;
+ nfs->rmtab = rmtab;
}
gf_store_unlock (nsh);