Fix potential memory leak in RSASSA-PSS verify

This commit is contained in:
Manuel Pégourié-Gonnard
2014-06-06 16:32:22 +02:00
parent b29a7ba3f2
commit 88aa6e0b58
+1
View File
@@ -1204,6 +1204,7 @@ int rsa_rsassa_pss_verify_ext( rsa_context *ctx,
if( expected_salt_len != RSA_SALT_LEN_ANY &&
slen != (size_t) expected_salt_len )
{
md_free_ctx( &md_ctx );
return( POLARSSL_ERR_RSA_INVALID_PADDING );
}