diff --git a/src/wp_aes_aead.c b/src/wp_aes_aead.c index 2bc717f0..61f58ff3 100644 --- a/src/wp_aes_aead.c +++ b/src/wp_aes_aead.c @@ -1403,7 +1403,6 @@ static int wp_aesgcm_encdec(wp_AeadCtx *ctx, unsigned char *out, size_t* outLen, ctx->aad, (word32)ctx->aadLen); if (rc == AES_GCM_AUTH_E) { ctx->authErr = 1; - rc = 0; } if (rc != 0) { ok = 0;