mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
free up memory with othername object on error
This commit is contained in:
@ -586,6 +586,7 @@ static int wolfssl_dns_entry_othername_to_gn(DNS_entry* dns,
|
|||||||
|
|
||||||
/* Next is: [0]. Check tag and length. */
|
/* Next is: [0]. Check tag and length. */
|
||||||
if (GetASNTag(p, &idx, &tag, (word32)len) < 0) {
|
if (GetASNTag(p, &idx, &tag, (word32)len) < 0) {
|
||||||
|
wolfSSL_ASN1_OBJECT_free(obj);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
if (tag != (ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | 0)) {
|
if (tag != (ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | 0)) {
|
||||||
|
Reference in New Issue
Block a user