Fix cleanup bug

This commit is contained in:
Zhi Guan
2026-06-12 09:48:32 +08:00
parent d4be17a01f
commit e480e25109
3 changed files with 12 additions and 16 deletions

View File

@@ -315,6 +315,9 @@ int x509_key_generate(X509_KEY *key, int algor, const void *param, size_t paraml
void x509_key_cleanup(X509_KEY *key)
{
if (key) {
if (!key->algor) {
return;
}
switch (key->algor) {
case OID_ec_public_key:
switch (key->algor_param) {