summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushik BV <kaushikbv@gluster.com>2011-06-08 09:29:13 +0000
committerAnand Avati <avati@gluster.com>2011-06-08 11:18:44 -0700
commit7b09f5f674c123e40bb66321f8288b8683c354f9 (patch)
tree79e48accf7fc127133c4914ec31f13c9ecafd02d
parentdbb66771878d8cb7e27ebc995c852603d6b35bda (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
-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 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;