added ID_ANY check to matches_binary()

This commit is contained in:
Andreas Steffen
2006-09-25 06:19:40 +00:00
parent 7f0a14b07f
commit 1c32a71e87
+5
View File
@@ -715,6 +715,11 @@ static bool equals_dn(private_identification_t *this, private_identification_t *
static bool matches_binary(private_identification_t *this, private_identification_t *other,
int *wildcards)
{
if (other->type == ID_ANY)
{
*wildcards = MAX_WILDCARDS;
return TRUE;
}
*wildcards = 0;
return this->type == other->type && chunk_equals(this->encoded, other->encoded);
}