openssl: Fix memory leak when verifying plain RSA signatures with old BoringSSL versions

Fixes: 21b586c61c ("openssl: Fixes for RSA with OpenSSL 3.0")
This commit is contained in:
Tobias Brunner
2026-07-24 08:47:38 +02:00
parent c64554b17f
commit bde21aa4f9
@@ -156,9 +156,9 @@ static bool verify_plain_signature(private_openssl_rsa_public_key_t *this,
{
valid = chunk_equals_const(data, chunk_create(buf, len));
}
free(buf);
EVP_PKEY_CTX_free(ctx);
#endif
free(buf);
return valid;
}