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:
Adrien Destugues 2015-11-09 11:13:00 +01:00
parent 4849ab6c8b
commit 55af491fde

View File

@ -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;