mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-20 03:44:15 +08:00
Fix cleanup bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user