two %any IDs are equal
This commit is contained in:
1 parent
3b138b8422
commit
f925b42a5d
1 file changed
+9
-2
@@ -738,8 +738,15 @@ static bool contains_wildcards(private_identification_t *this)
|
||||
*/
|
||||
static bool equals_binary(private_identification_t *this, private_identification_t *other)
|
||||
{
|
||||
return this->type == other->type &&
|
||||
chunk_equals(this->encoded, other->encoded);
|
||||
if (this->type == other->type)
|
||||
{
|
||||
if (this->type == ID_ANY)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
return chunk_equals(this->encoded, other->encoded);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user