From: Pauli Date: Sun, 26 Apr 2020 22:21:06 +0000 (+1000) Subject: coverity: 1462544 Dereference after null check X-Git-Tag: openssl-3.0.0-alpha2~129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e655ce14d0c68e8ddf85a2941e222f7806f84013;p=oweals%2Fopenssl.git coverity: 1462544 Dereference after null check Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/11651) --- 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);