From e655ce14d0c68e8ddf85a2941e222f7806f84013 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 27 Apr 2020 08:21:06 +1000 Subject: [PATCH] coverity: 1462544 Dereference after null check Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/11651) --- providers/implementations/ciphers/cipher_aes_ocb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1