summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quota.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/quota/src/quota.c')
-rw-r--r--xlators/features/quota/src/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index a94d5b729..6f28c8981 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -234,7 +234,7 @@ quota_validate_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
}
ret = dict_get_bin (dict, QUOTA_SIZE_KEY, (void **) &size);
- if (ret == -1) {
+ if (ret < 0) {
gf_log (this->name, GF_LOG_WARNING,
"size key not present in dict");
op_errno = EINVAL;