summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe
diff options
context:
space:
mode:
authorKaushik BV <kaushikbv@gluster.com>2011-06-02 04:39:27 +0000
committerAnand Avati <avati@gluster.com>2011-06-08 09:57:51 -0700
commita9fd99f0d0206d4951aa50630b7921a50523bf23 (patch)
tree8cc1446c9168b3f87f4dccc11b418d50932017e9 /xlators/cluster/stripe
parentddb2505383441b0bf41e31c13f90420f5d14d1dc (diff)
cluster/stripe: check if key is a valid ptr. before dereferncing
Signed-off-by: Kaushik BV <kaushikbv@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2978 (Geo-replication fails on stripe(Master) setup.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2978
Diffstat (limited to 'xlators/cluster/stripe')
-rw-r--r--xlators/cluster/stripe/src/stripe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index aa572471299..4da0495e317 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -4354,7 +4354,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;