From 3c5aed7d8226e50296c6a7106e0d59682732e9b5 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 3 Apr 2012 15:22:45 +0530 Subject: locks, stripe: check if dict is NULL before refing it Change-Id: Ifab58504280ed92e4435f7805052745e56bef5ef BUG: 808003 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/3073 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/locks/src/posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/features/locks/src') diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 15b68fac7..3e04c18f0 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -272,7 +272,8 @@ pl_ftruncate (call_frame_t *frame, xlator_t *this, local->op = FTRUNCATE; local->offset = offset; local->fd = fd_ref (fd); - local->xdata = dict_ref (xdata); + if (xdata) + local->xdata = dict_ref (xdata); frame->local = local; -- cgit