Fix potential memory leak in RSASSA-PSS verify

This commit is contained in:
Manuel Pégourié-Gonnard 2014-06-05 18:53:16 +02:00
parent b29a7ba3f2
commit 88aa6e0b58

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 );
}