diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2012-04-03 15:22:45 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-04-03 04:20:48 -0700 |
commit | 3c5aed7d8226e50296c6a7106e0d59682732e9b5 (patch) | |
tree | 63537ed75772fad83cec6a8c092abcbfb22b2d3a /xlators/features/locks/src | |
parent | 0e4c74861f762d4af7b7d8ffce5384920a6aa335 (diff) |
locks, stripe: check if dict is NULL before refing it
Change-Id: Ifab58504280ed92e4435f7805052745e56bef5ef
BUG: 808003
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Reviewed-on: http://review.gluster.com/3073
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/features/locks/src')
-rw-r--r-- | xlators/features/locks/src/posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 15b68fac7fd..3e04c18f008 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; |