diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2010-08-12 06:19:40 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-12 23:39:02 -0700 |
commit | df72e61b29c8a574ce8db254f1fc33a0261a03bb (patch) | |
tree | 5715dc808c9f73b6fd702eee721272fcce466656 /xlators/cluster/afr/src/afr-self-heal-entry.c | |
parent | 9349f559dc715cc7598edfb09e95470464ea1acb (diff) | |
download | glusterfs-df72e61b29c8a574ce8db254f1fc33a0261a03bb.tar.gz glusterfs-df72e61b29c8a574ce8db254f1fc33a0261a03bb.tar.xz glusterfs-df72e61b29c8a574ce8db254f1fc33a0261a03bb.zip |
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/afr/src/afr-self-heal-entry.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-entry.c | 2 |
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 a4bab4208d..719221175b 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", |