e_aes.c: uninitialized variable in aes_ccm_init_key.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 15 Oct 2012 11:28:59 +0000 (11:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 15 Oct 2012 11:28:59 +0000 (11:28 +0000)
PR: 2874
Submitted by: Tomas Mraz
(backport from HEAD)

crypto/evp/e_aes.c

index 71f9e037d53d79cdbf5e9ba0c9b73e3811d6d386..d1357f7e38d1a1f69fc4a5e0b773282bad94024a 100644 (file)
@@ -1195,6 +1195,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;
                        }