mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fixed CID 586938
This commit is contained in:
@ -9798,9 +9798,13 @@ int CopyDecodedToX509(WOLFSSL_X509* x509, DecodedCert* dCert)
|
|||||||
} else {
|
} else {
|
||||||
wolfSSL_ASN1_OBJECT_free(x509->key.algor->algorithm);
|
wolfSSL_ASN1_OBJECT_free(x509->key.algor->algorithm);
|
||||||
}
|
}
|
||||||
if (!(x509->key.algor->algorithm =
|
if (!x509->key.algor) {
|
||||||
wolfSSL_OBJ_nid2obj(dCert->keyOID))) {
|
ret = MEMORY_E;
|
||||||
ret = PUBLIC_KEY_E;
|
} else {
|
||||||
|
if (!(x509->key.algor->algorithm =
|
||||||
|
wolfSSL_OBJ_nid2obj(dCert->keyOID))) {
|
||||||
|
ret = PUBLIC_KEY_E;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wolfSSL_EVP_PKEY_free(x509->key.pkey);
|
wolfSSL_EVP_PKEY_free(x509->key.pkey);
|
||||||
|
Reference in New Issue
Block a user