[haiku-commits] haiku: hrev49791 - src/kits/network/libnetapi

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 9 Nov 2015 11:17:48 +0100 (CET)

hrev49791 adds 1 changeset to branch 'master'
old head: 4849ab6c8b4d9443544cfffe108d6ca26660127d
new head: 55af491fde46ea60a77a4ea6c37d80f500723729
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=55af491fde46+%5E4849ab6c8b4d

----------------------------------------------------------------------------

55af491fde46: 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.

[ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision: hrev49791
Commit: 55af491fde46ea60a77a4ea6c37d80f500723729
URL: http://cgit.haiku-os.org/haiku/commit/?id=55af491fde46
Author: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date: Mon Nov 9 10:13:00 2015 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
src/kits/network/libnetapi/UrlContext.cpp | 3 ++-

----------------------------------------------------------------------------

diff --git a/src/kits/network/libnetapi/UrlContext.cpp
b/src/kits/network/libnetapi/UrlContext.cpp
index 4a7970a..6e7ec48 100644
--- a/src/kits/network/libnetapi/UrlContext.cpp
+++ b/src/kits/network/libnetapi/UrlContext.cpp
@@ -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;


Other related posts:

  • » [haiku-commits] haiku: hrev49791 - src/kits/network/libnetapi - pulkomandy