BUrlContext: fix logic reversal in certificate comparison
The Predicate for BObjectList::FindIf must actually be a difference operator, and return 0 if there is a match.
This commit is contained in:
parent
4849ab6c8b
commit
55af491fde
@ -159,7 +159,8 @@ BUrlContext::HasCertificateException(const BCertificate& certificate)
|
||||
|
||||
int operator()(const BCertificate* item) const
|
||||
{
|
||||
return *item == fItemToMatch;
|
||||
/* Must return 0 if there is a match! */
|
||||
return !(*item == fItemToMatch);
|
||||
}
|
||||
|
||||
const BCertificate& fItemToMatch;
|
||||
|
Loading…
Reference in New Issue
Block a user