summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2012-12-17 14:59:25 +0530
committerAnand Avati <avati@redhat.com>2012-12-17 18:05:26 -0800
commit4854e57edb1d17c8c924ad8c72e6c0e20788afa8 (patch)
tree099db0413d37a503607c4e552c89ac9a420c8bed
parentb8a19d235a5d4fef572fe3a4ad5ccddaf207ee49 (diff)
cluster/afr: check for the -ve values returned from dict_serialized_length
Change-Id: I9fa7744b02791180ccb93adef10c363a1b38aa31 BUG: 838204 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/4319 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--xlators/cluster/afr/src/afr-inode-read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-read.c b/xlators/cluster/afr/src/afr-inode-read.c
index beff715b5cd..1b3f7405115 100644
--- a/xlators/cluster/afr/src/afr-inode-read.c
+++ b/xlators/cluster/afr/src/afr-inode-read.c
@@ -1058,7 +1058,7 @@ unlock:
}
len = dict_serialized_length (local->dict);
- if (len == 0) {
+ if (len <= 0) {
goto unwind;
}