From 7b09f5f674c123e40bb66321f8288b8683c354f9 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Wed, 8 Jun 2011 09:29:13 +0000 Subject: cluster/stripe: check if key is a valid ptr. before dereferncing Signed-off-by: Kaushik BV Signed-off-by: Anand Avati BUG: 2978 (Geo-replication fails on stripe(Master) setup.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2978 --- xlators/cluster/stripe/src/stripe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 50815abe588..032b8515e5c 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -4341,7 +4341,7 @@ stripe_getxattr (call_frame_t *frame, xlator_t *this, return 0; } - if (*priv->vol_uuid) { + if (name &&(*priv->vol_uuid)) { if ((match_uuid_local (name, priv->vol_uuid) == 0) && (-1 == frame->root->pid)) { local->marker.call_count = priv->child_count; -- cgit