diff options
| author | Pranith Kumar K <pranithk@gluster.com> | 2010-08-12 06:16:32 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-12 23:39:20 -0700 | 
| commit | 06c2bed16ecf38b314f5f7fce3a4459778989f03 (patch) | |
| tree | 0b5b3b816260982cd59c990663405467d856fea2 | |
| parent | 624eefdeaa82419307f7e91ceaea58183d2ebe10 (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
| -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 17c82d56538..a6e67641ce9 100644 --- a/xlators/cluster/afr/src/afr-self-heal-entry.c +++ b/xlators/cluster/afr/src/afr-self-heal-entry.c @@ -875,7 +875,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",  | 
