From: Andy Polyakov Date: Sat, 15 Sep 2012 08:45:42 +0000 (+0000) Subject: e_aes.c: uninitialized variable in aes_ccm_init_key. X-Git-Tag: master-post-reformat~1693 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=244ed51a0dad5f52233b46be716defcfe7bc77ff;hp=4f3df8bea2981b1547eaae8704f0207c7766c2fa e_aes.c: uninitialized variable in aes_ccm_init_key. PR: 2874 Submitted by: Tomas Mraz --- diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index 519e0143d2..5dccb2f608 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -1218,6 +1218,7 @@ static int aes_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, vpaes_set_encrypt_key(key, ctx->key_len*8, &cctx->ks); CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, &cctx->ks, (block128_f)vpaes_encrypt); + cctx->str = NULL; cctx->key_set = 1; break; }