Corrected check for valid ASN1 types in rdn_enumerate.
Because of the range of u_char the comparison was always TRUE before.
This commit is contained in:
@@ -147,9 +147,10 @@ static bool rdn_enumerate(rdn_enumerator_t *this, chunk_t *oid,
|
||||
if (asn1_unwrap(&rdn, oid) == ASN1_OID)
|
||||
{
|
||||
/* and a specific string type */
|
||||
*type = asn1_unwrap(&rdn, data);
|
||||
if (*type != ASN1_INVALID)
|
||||
int t = asn1_unwrap(&rdn, data);
|
||||
if (t != ASN1_INVALID)
|
||||
{
|
||||
*type = t;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user