summaryrefslogtreecommitdiffstats
path: root/xlators/encryption
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/encryption')
-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;