summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorJoseph Fernandes <josferna@redhat.com>2015-11-26 14:33:14 +0530
committerDan Lambright <dlambrig@redhat.com>2015-12-09 21:23:32 -0800
commitdb3ff1e75f6d6cf80967708778f36ae07ddb220a (patch)
treebbb644e186f2767972e5b4d5e2c1506e31bc3c7e /xlators/features
parentd07983bff768e919fd867c27f8cca9c346e4eca9 (diff)
tier/ctr: Check filename in ctr_lookup for nameless lookup
Check filename in ctr_lookup for nameless lookup Change-Id: I1ab3f658e3b9fee708f6986d1990f16db920d2fb BUG: 1285663 Signed-off-by: Joseph Fernandes <josferna@redhat.com> Reviewed-on: http://review.gluster.org/12760 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/changetimerecorder/src/changetimerecorder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/changetimerecorder/src/changetimerecorder.c b/xlators/features/changetimerecorder/src/changetimerecorder.c
index 85a04944077..ce6978470ee 100644
--- a/xlators/features/changetimerecorder/src/changetimerecorder.c
+++ b/xlators/features/changetimerecorder/src/changetimerecorder.c
@@ -330,7 +330,7 @@ ctr_lookup (call_frame_t *frame, xlator_t *this,
GF_ASSERT(frame->root);
/* Dont handle nameless lookups*/
- if (!loc->parent)
+ if (!loc->parent || !loc->name)
goto out;
/*fill ctr link context*/