summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index f24bd8b7d..f27227c4c 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -2296,7 +2296,7 @@ afr_lookup (call_frame_t *frame, xlator_t *this,
&local->loc);
local->fop = GF_FOP_LOOKUP;
if (priv->choose_local && !priv->did_discovery) {
- if (__is_root_gfid(gfid_req)) {
+ if (gfid_req && __is_root_gfid(gfid_req)) {
local->do_discovery = _gf_true;
priv->did_discovery = _gf_true;
}