aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/evp/e_aes.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/evp/e_aes.c')
-rw-r--r--openssl/crypto/evp/e_aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/crypto/evp/e_aes.c b/openssl/crypto/evp/e_aes.c
index 1ede7bd39..a4327fcb0 100644
--- a/openssl/crypto/evp/e_aes.c
+++ b/openssl/crypto/evp/e_aes.c
@@ -1146,7 +1146,7 @@ static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
case EVP_CTRL_CCM_SET_TAG:
if ((arg & 1) || arg < 4 || arg > 16)
return 0;
- if ((c->encrypt && ptr) || (!c->encrypt && !ptr))
+ if (c->encrypt && ptr)
return 0;
if (ptr) {
cctx->tag_set = 1;