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:
@@ -159,7 +159,8 @@ BUrlContext::HasCertificateException(const BCertificate& certificate)
|
|||||||
|
|
||||||
int operator()(const BCertificate* item) const
|
int operator()(const BCertificate* item) const
|
||||||
{
|
{
|
||||||
return *item == fItemToMatch;
|
/* Must return 0 if there is a match! */
|
||||||
|
return !(*item == fItemToMatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
const BCertificate& fItemToMatch;
|
const BCertificate& fItemToMatch;
|
||||||
|
|||||||
Reference in New Issue
Block a user