summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-08-12 06:19:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-12 23:39:02 -0700
commitdf72e61b29c8a574ce8db254f1fc33a0261a03bb (patch)
tree5715dc808c9f73b6fd702eee721272fcce466656 /xlators/cluster
parent9349f559dc715cc7598edfb09e95470464ea1acb (diff)
cluster/afr: Avoid Null de-reference when post parent is NULL
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 857 (Crash in afr_sh_entry_expunge_entry_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=857
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c
index a4bab4208de..719221175bc 100644
--- a/xlators/cluster/afr/src/afr-self-heal-entry.c
+++ b/xlators/cluster/afr/src/afr-self-heal-entry.c
@@ -877,7 +877,7 @@ afr_sh_entry_expunge_entry_cbk (call_frame_t *expunge_frame, void *cookie,
active_src = expunge_sh->active_source;
source = (long) cookie;
- if (op_ret == -1 && op_errno == ENOENT) {
+ if (op_ret == -1 && op_errno == ENOENT && postparent) {
gf_log (this->name, GF_LOG_TRACE,
"missing entry %s on %s",