diff options
Diffstat (limited to 'lib/libcrypto/rsa/rsa_pss.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_pss.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libcrypto/rsa/rsa_pss.c b/lib/libcrypto/rsa/rsa_pss.c index bd2fde07d43..1e060141659 100644 --- a/lib/libcrypto/rsa/rsa_pss.c +++ b/lib/libcrypto/rsa/rsa_pss.c @@ -172,8 +172,7 @@ int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, ret = 1; err: - if (DB) - free(DB); + free(DB); EVP_MD_CTX_cleanup(&ctx); return ret; @@ -284,8 +283,7 @@ int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, ret = 1; err: - if (salt) - free(salt); + free(salt); return ret; |