summaryrefslogtreecommitdiffstats
path: root/providers/common
diff options
context:
space:
mode:
authorPatrick Steuer <patrick.steuer@de.ibm.com>2019-09-18 15:46:39 +0200
committerPatrick Steuer <patrick.steuer@de.ibm.com>2019-09-18 21:58:10 +0200
commita74b2eda2fcc386e85c6f859729631b0642c4ee6 (patch)
treec78073170c5bbef2c9a9fcf7095246dbecb1cc41 /providers/common
parent682b6f67472c22ad2e750c3398d0c49b13c7f5dd (diff)
Fix strict-warnings build
..which was broken for s390 due to 1c3ace68. Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/9937)
Diffstat (limited to 'providers/common')
-rw-r--r--providers/common/ciphers/cipher_aes_gcm_hw_s390x.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/providers/common/ciphers/cipher_aes_gcm_hw_s390x.inc b/providers/common/ciphers/cipher_aes_gcm_hw_s390x.inc
index ceb733db59..44c3bf332d 100644
--- a/providers/common/ciphers/cipher_aes_gcm_hw_s390x.inc
+++ b/providers/common/ciphers/cipher_aes_gcm_hw_s390x.inc
@@ -97,10 +97,7 @@ static int s390x_aes_gcm_cipher_final(PROV_GCM_CTX *ctx, unsigned char *tag)
memcpy(tag, kma->t.b, ctx->taglen);
rc = 1;
} else {
- if (ctx->taglen < 0)
- rc = 0;
- else
- rc = (CRYPTO_memcmp(tag, kma->t.b, ctx->taglen) == 0);
+ rc = (CRYPTO_memcmp(tag, kma->t.b, ctx->taglen) == 0);
}
return rc;
}