diff options
| -rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-data.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index e29c1deff4b..366cac81721 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -741,7 +741,8 @@ afr_sh_data_fix (call_frame_t *frame, xlator_t *this)  	*/  	dict_unref (orig_local->cont.lookup.xattr); -	orig_local->cont.lookup.xattr = dict_ref (orig_local->cont.lookup.xattrs[sh->source]); +        if (orig_local->cont.lookup.xattrs) +                orig_local->cont.lookup.xattr = dict_ref (orig_local->cont.lookup.xattrs[sh->source]);          if (sh->background) {                  sh->unwind (sh->orig_frame, this);  | 
