Compatibility Layer

When making a AUTHORITY KEY object, if the ASN1 OBJECT fails, the key object is leaked.
This commit is contained in:
John Safranek
2020-10-27 14:51:35 -07:00
parent 76e84e0830
commit 6a77a8d8d6

View File

@ -9399,6 +9399,7 @@ void* wolfSSL_X509_get_ext_d2i(const WOLFSSL_X509* x509, int nid, int* c,
obj = wolfSSL_ASN1_OBJECT_new();
if (obj == NULL) {
WOLFSSL_MSG("Issue creating WOLFSSL_ASN1_OBJECT struct");
wolfSSL_AUTHORITY_KEYID_free(akey);
return NULL;
}
obj->type = AUTH_KEY_OID;