crypto/rsa/rsa_pss.c: silence coverity warning
[openssl.git] / crypto / rsa / rsa_pss.c
index 26d5f36f1f66c58a1b0903f82c3abbb0ff0ad88b..f7c575d00ab1232cefac095b449ccc12cf2595b4 100644 (file)
@@ -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;