X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=crypto%2Fevp%2Fe_aes.c;h=d3be6a086aaaefe872fd85af9feaaed9dc2f1514;hb=7c12c7b61c5b37c9dff930ccc68421fb7de00271;hp=0fb3c16e4e7dd2f913e034b6a63b3f6ac6677725;hpb=0ba5a9eaa0a6ae7fc25ee70eefc1f4fbdaf09483;p=oweals%2Fopenssl.git diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index 0fb3c16e4e..d3be6a086a 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -2587,6 +2587,8 @@ static int aes_ocb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, } written_len = AES_BLOCK_SIZE; *buf_len = 0; + if (out != NULL) + out += AES_BLOCK_SIZE; } /* Do we have a partial block to handle at the end? */