diff options
author | Pauli <paul.dale@oracle.com> | 2020-04-27 08:21:06 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-04-30 20:21:31 +1000 |
commit | e655ce14d0c68e8ddf85a2941e222f7806f84013 (patch) | |
tree | b1c04a5ad3d317d568d2f9dc801b450841077f8e /providers/implementations/ciphers | |
parent | 1f74259d4237a98db7aaa65c55a747f15a347b7c (diff) |
coverity: 1462544 Dereference after null check
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
Diffstat (limited to 'providers/implementations/ciphers')
-rw-r--r-- | providers/implementations/ciphers/cipher_aes_ocb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/ciphers/cipher_aes_ocb.c b/providers/implementations/ciphers/cipher_aes_ocb.c index 8d7f8956fc..859f3524a4 100644 --- a/providers/implementations/ciphers/cipher_aes_ocb.c +++ b/providers/implementations/ciphers/cipher_aes_ocb.c @@ -153,7 +153,7 @@ static int aes_ocb_block_update_internal(PROV_AES_OCB_CTX *ctx, size_t nextblocks; size_t outlint = 0; - if (bufsz != 0) + if (*bufsz != 0) nextblocks = fillblock(buf, bufsz, AES_BLOCK_SIZE, &in, &inl); else nextblocks = inl & ~(AES_BLOCK_SIZE-1); |