summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorappro <appro>2011-10-14 09:32:06 +0000
committerappro <appro>2011-10-14 09:32:06 +0000
commit0098342e2bd794bf4beb693f484726993cd24947 (patch)
tree47580694c2e53d8d5eeb0350de5f729154e0a94a /crypto
parentf4254ada3a0bb5c78e482c4ba235db22d6c98ae2 (diff)
downloadopenssl-0098342e2bd794bf4beb693f484726993cd24947.tar.gz
e_aes.c: fix bug in aesni_gcm_tls_cipher.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/e_aes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c
index 558f1a197..4b94b2a84 100644
--- a/crypto/evp/e_aes.c
+++ b/crypto/evp/e_aes.c
@@ -369,6 +369,7 @@ static int aesni_gcm_tls_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
/* Encrypt payload */
if (CRYPTO_gcm128_encrypt_ctr32(&gctx->gcm, in, out, len,
aesni_ctr32_encrypt_blocks))
+ goto err;
out += len;
/* Finally write tag */
CRYPTO_gcm128_tag(&gctx->gcm, out, EVP_GCM_TLS_TAG_LEN);