From 675e8b4a1f07668a6145c16283b68daa165a7a0c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 26 Mar 2009 08:47:13 -0700 Subject: 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 --- libglusterfsclient/src/libglusterfsclient.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfsclient/src') diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 13afb9facfb..6de8ad879df 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; -- cgit