diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/evp/e_aes.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/e_aes.c b/src/lib/libcrypto/evp/e_aes.c index 8ee93c4bbd..f40bcf8bd3 100644 --- a/src/lib/libcrypto/evp/e_aes.c +++ b/src/lib/libcrypto/evp/e_aes.c  | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_aes.c,v 1.21 2014/06/15 15:41:25 jsing Exp $ */ | 1 | /* $OpenBSD: e_aes.c,v 1.22 2014/06/15 22:53:21 tedu Exp $ */ | 
| 2 | /* ==================================================================== | 2 | /* ==================================================================== | 
| 3 | * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. | 
| 4 | * | 4 | * | 
| @@ -651,9 +651,9 @@ aes_gcm_cleanup(EVP_CIPHER_CTX *c) | |||
| 651 | { | 651 | { | 
| 652 | EVP_AES_GCM_CTX *gctx = c->cipher_data; | 652 | EVP_AES_GCM_CTX *gctx = c->cipher_data; | 
| 653 | 653 | ||
| 654 | OPENSSL_cleanse(gctx, sizeof(*gctx)); | ||
| 655 | if (gctx->iv != c->iv) | 654 | if (gctx->iv != c->iv) | 
| 656 | free(gctx->iv); | 655 | free(gctx->iv); | 
| 656 | OPENSSL_cleanse(gctx, sizeof(*gctx)); | ||
| 657 | return 1; | 657 | return 1; | 
| 658 | } | 658 | } | 
| 659 | 659 | ||
