mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
DecodeNameConstraints (ASN Template): free ASNGetData
This commit is contained in:
@ -16198,8 +16198,8 @@ static int DecodeNameConstraints(const byte* input, int sz, DecodedCert* cert)
|
||||
|
||||
if (ret == 0) {
|
||||
/* Parse NameConstraints. */
|
||||
ret = GetASN_Items(nameConstraintsASN, dataASN, nameConstraintsASN_Length,
|
||||
1, input, &idx, sz);
|
||||
ret = GetASN_Items(nameConstraintsASN, dataASN,
|
||||
nameConstraintsASN_Length, 1, input, &idx, sz);
|
||||
}
|
||||
if (ret == 0) {
|
||||
/* If there was a permittedSubtrees then parse it. */
|
||||
@ -16220,6 +16220,8 @@ static int DecodeNameConstraints(const byte* input, int sz, DecodedCert* cert)
|
||||
}
|
||||
}
|
||||
|
||||
FREE_ASNGETDATA(dataASN, cert->heap);
|
||||
|
||||
return ret;
|
||||
#endif /* WOLFSSL_ASN_TEMPLATE */
|
||||
}
|
||||
|
Reference in New Issue
Block a user