Skip to content

Commit 5b2293c

Browse files
committed
Workaround revoked certificate check on Linux
Comparing std::string with base::BasicStringPiece<std::string> doesn't seem to work properly in std::binary_search(). Task-number: QTBUG-91467 Change-Id: I535faa358e3ce20ddb87a0830aa97fa1953d5994 Reviewed-by: Kirill Burtsev <[email protected]>
1 parent dc35950 commit 5b2293c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/net/cert/crl_set.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ bool CRLSet::ParseAndStoreUnparsedData(std::string data,
312312

313313
CRLSet::Result CRLSet::CheckSPKI(const base::StringPiece& spki_hash) const {
314314
if (std::binary_search(blocked_spkis_.begin(), blocked_spkis_.end(),
315-
spki_hash))
315+
spki_hash.data()))
316316
return REVOKED;
317317
return GOOD;
318318
}

0 commit comments

Comments
 (0)