diff options
author | luozhengzheng <[email protected]> | 2016-09-18 06:08:54 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-17 15:08:54 -0700 |
commit | 30f3f2e13c01bf1c881b2f3bb1236fca9f87a8e5 (patch) | |
tree | 8370f7f96bc86a483a9c754e05f7d3e504a7aa81 /module/icp/io | |
parent | 9ea9e0b9a1f15b1e3b6b89bbc29d2a68df87ab3c (diff) |
Fix Coverity defects
CID 147659, 150952 and 147645
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: luozhengzheng <[email protected]>
Closes #5103
Diffstat (limited to 'module/icp/io')
-rw-r--r-- | module/icp/io/sha2_mod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/icp/io/sha2_mod.c b/module/icp/io/sha2_mod.c index fc5f96044..be0f7a42c 100644 --- a/module/icp/io/sha2_mod.c +++ b/module/icp/io/sha2_mod.c @@ -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) { |