summaryrefslogtreecommitdiffstats
path: root/xlators/encryption/crypt/src
diff options
context:
space:
mode:
authorBhumika Goyal <bgoyal@redhat.com>2018-08-18 22:46:12 +0530
committerAmar Tumballi <amarts@redhat.com>2018-08-23 03:44:11 +0000
commit8096542c1cd3250593a0aa4c2dd32aa409f21723 (patch)
treefe2ae48a533a06181b62ada8bdf9983837149a75 /xlators/encryption/crypt/src
parentab27d4288997acc1b6c6bdd55a3387644eea6ecd (diff)
crypt: fix coverity issues
Fixes CID: 130760 130759 Change-Id: I40efebd712a3bd769cb1fbc54409f1b0b35eb7b4 updates: bz#789278 Signed-off-by: Bhumika Goyal <bgoyal@redhat.com>
Diffstat (limited to 'xlators/encryption/crypt/src')
-rw-r--r--xlators/encryption/crypt/src/data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/encryption/crypt/src/data.c b/xlators/encryption/crypt/src/data.c
index 82e29c0405a..0aae60d7139 100644
--- a/xlators/encryption/crypt/src/data.c
+++ b/xlators/encryption/crypt/src/data.c
@@ -479,7 +479,7 @@ int32_t set_config_avec_data(xlator_t *this,
avec = GF_CALLOC(conf->acount, sizeof(*avec), gf_crypt_mt_iovec);
if (!avec)
return ret;
- pool = GF_CALLOC(conf->acount, sizeof(pool), gf_crypt_mt_char);
+ pool = GF_CALLOC(conf->acount, sizeof(*pool), gf_crypt_mt_char);
if (!pool) {
GF_FREE(avec);
return ret;
@@ -558,7 +558,7 @@ int32_t set_config_avec_hole(xlator_t *this,
avec = GF_CALLOC(num_blocks, sizeof(*avec), gf_crypt_mt_iovec);
if (!avec)
return ENOMEM;
- pool = GF_CALLOC(num_blocks, sizeof(pool), gf_crypt_mt_char);
+ pool = GF_CALLOC(num_blocks, sizeof(*pool), gf_crypt_mt_char);
if (!pool) {
GF_FREE(avec);
return ENOMEM;