summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_pss.c
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2018-09-09 16:33:12 +0200
committerMatt Caswell <matt@openssl.org>2018-09-10 12:03:50 +0200
commit427e91d928ce7a1c583e4bba761cb17a85ac95b4 (patch)
treee3c71f5b1c5c2aaef6da3d22b738993469a80938 /crypto/rsa/rsa_pss.c
parenttest/dhtest.c: fix resource leak (diff)
downloadopenssl-427e91d928ce7a1c583e4bba761cb17a85ac95b4.tar.xz
openssl-427e91d928ce7a1c583e4bba761cb17a85ac95b4.zip
crypto/rsa/rsa_pss.c: silence coverity warning
Reported by Coverity Scan (CID 1439138) [extended tests] Reviewed-by: Ben Kaduk <kaduk@mit.edu> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7156)
Diffstat (limited to 'crypto/rsa/rsa_pss.c')
-rw-r--r--crypto/rsa/rsa_pss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_pss.c b/crypto/rsa/rsa_pss.c
index 26d5f36f1f..f7c575d00a 100644
--- a/crypto/rsa/rsa_pss.c
+++ b/crypto/rsa/rsa_pss.c
@@ -244,7 +244,7 @@ int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,
err:
EVP_MD_CTX_free(ctx);
- OPENSSL_clear_free(salt, sLen);
+ OPENSSL_clear_free(salt, (size_t)sLen); /* salt != NULL implies sLen > 0 */
return ret;