From bfb6366bd2a6de4cb5322dda72fbc1e6ad1edc41 Mon Sep 17 00:00:00 2001 From: shylesh kumar Date: Wed, 28 Mar 2012 10:50:06 +0530 Subject: cluster/stripe- do not ref if dict is null Change-Id: Ifa4a5253482d837e2583de078e908b8c442f9dca BUG: 807214 Signed-off-by: shylesh kumar Reviewed-on: http://review.gluster.com/3024 Tested-by: Gluster Build System Reviewed-by: Shishir Gowda --- xlators/cluster/stripe/src/stripe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index aa65eb4fbce..73700ff925e 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -1122,7 +1122,9 @@ stripe_unlink (call_frame_t *frame, xlator_t *this, loc_t *loc, local->op_ret = -1; loc_copy (&local->loc, loc); local->xflag = xflag; - local->xdata = dict_ref (xdata); + + if (xdata) + local->xdata = dict_ref (xdata); frame->local = local; local->call_count = priv->child_count; -- cgit