summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2010-05-17 04:42:46 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-21 00:31:37 -0700
commit86ee9d3e144d2371e5ae7edf663916b8da6d2616 (patch)
tree666a04e1dd6af0a3ecb8d4009095c5b5343141c6 /xlators/cluster
parent8734ba0fc9e066065dfd23f8f6da12f2fd89e80e (diff)
cluster/afr: Don't dereference fd ptr - it might be NULL due to a failed call.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 914 ([3.0.4] Crash in afr_opendir_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=914
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c
index 0f9bdf59eae..e23aa414fec 100644
--- a/xlators/cluster/afr/src/afr-dir-read.c
+++ b/xlators/cluster/afr/src/afr-dir-read.c
@@ -240,7 +240,7 @@ afr_opendir_cbk (call_frame_t *frame, void *cookie,
if (local->op_ret == 0) {
ret = afr_fd_ctx_set (this, local->fd);
- if (!afr_is_opendir_done (this, fd->inode)) {
+ if (!afr_is_opendir_done (this, local->fd->inode)) {
/*
* This is the first opendir on this inode. We need