Fix boolean return value if an empty RSA signature is detected in gmp plugin
[strongswan.git] / src / libstrongswan / plugins / gmp / gmp_rsa_public_key.c
index a7ba801..898892f 100644 (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 */