mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix Coverity defects
CID 147659, 150952 and 147645 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn> Closes #5103
This commit is contained in:
committed by
Brian Behlendorf
parent
9ea9e0b9a1
commit
30f3f2e13c
@@ -681,7 +681,7 @@ sha2_mac_init_ctx(sha2_hmac_ctx_t *ctx, void *keyval, uint_t length_in_bytes)
|
||||
{
|
||||
uint64_t ipad[SHA256_HMAC_BLOCK_SIZE / sizeof (uint64_t)];
|
||||
uint64_t opad[SHA256_HMAC_BLOCK_SIZE / sizeof (uint64_t)];
|
||||
int i, block_size, blocks_per_int64 = 0;
|
||||
int i, block_size = 0, blocks_per_int64 = 0;
|
||||
|
||||
/* Determine the block size */
|
||||
if (ctx->hc_mech_type <= SHA256_HMAC_GEN_MECH_INFO_TYPE) {
|
||||
|
||||
Reference in New Issue
Block a user