From db3ff1e75f6d6cf80967708778f36ae07ddb220a Mon Sep 17 00:00:00 2001 From: Joseph Fernandes Date: Thu, 26 Nov 2015 14:33:14 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/12760 Tested-by: Gluster Build System Reviewed-by: Dan Lambright Tested-by: Dan Lambright --- xlators/features/changetimerecorder/src/changetimerecorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features') 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*/ -- cgit