summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-03-26 08:47:13 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-03-26 23:40:04 +0530
commit675e8b4a1f07668a6145c16283b68daa165a7a0c (patch)
tree7cd027f0dbd382efdd7d64f9863d22b44ba25a44 /libglusterfsclient
parenta59582c3faed3efcf713caeb990ea5c35479dd8d (diff)
libglusterfsclient: Fix NULL argument bug
inode_ctx_get was being passed a xlator_t type that was initialized to NULL resulting in a EINVAL return from glusterfs_fstat. Reported on gluster-devel Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 13afb9fac..6de8ad879 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -3034,6 +3034,7 @@ libgf_client_fstat (libglusterfs_client_ctx_t *ctx,
uint64_t ptr = 0;
current = time (NULL);
+ this = ctx->gf_ctx.graph;
op_ret = inode_ctx_get (fd->inode, this, &ptr);
if (op_ret == -1) {
errno = EINVAL;