Fix potential memory leak in RSASSA-PSS verify
This commit is contained in:
parent
b29a7ba3f2
commit
88aa6e0b58
1 changed files with 1 additions and 0 deletions
|
@ -1204,6 +1204,7 @@ int rsa_rsassa_pss_verify_ext( rsa_context *ctx,
|
||||||
if( expected_salt_len != RSA_SALT_LEN_ANY &&
|
if( expected_salt_len != RSA_SALT_LEN_ANY &&
|
||||||
slen != (size_t) expected_salt_len )
|
slen != (size_t) expected_salt_len )
|
||||||
{
|
{
|
||||||
|
md_free_ctx( &md_ctx );
|
||||||
return( POLARSSL_ERR_RSA_INVALID_PADDING );
|
return( POLARSSL_ERR_RSA_INVALID_PADDING );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue