Fix boolean return value if an empty RSA signature is detected in gmp plugin

Fixes CVE-2012-2388.
This commit is contained in:
Martin Willi 2012-05-07 13:51:46 +02:00 committed by Tobias Brunner
parent 77e4282643
commit 060b508e0e
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ static bool verify_emsa_pkcs1_signature(private_gmp_rsa_public_key_t *this,
if (signature.len == 0 || signature.len > this->k)
{
return INVALID_ARG;
return FALSE;
}
/* unpack signature */