summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-22 00:15:36 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-22 00:15:36 +0000
commitb7091b93d3dffa52c990b79366e339c6be8558a7 (patch)
tree4b24d1c62d4484d83f08bdc0f41275fa88963d52 /net/base
parent76063ae6c9f03103fcd94552f5593661ba9e16fc (diff)
downloadchromium_src-b7091b93d3dffa52c990b79366e339c6be8558a7.zip
chromium_src-b7091b93d3dffa52c990b79366e339c6be8558a7.tar.gz
chromium_src-b7091b93d3dffa52c990b79366e339c6be8558a7.tar.bz2
Consider "certificate revoked" as the most serious certificate
error. R=abarth BUG=none TEST=none Review URL: http://codereview.chromium.org/171056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24048 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/cert_status_flags.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/cert_status_flags.cc b/net/base/cert_status_flags.cc
index 7cf4b3e..7e20cec 100644
--- a/net/base/cert_status_flags.cc
+++ b/net/base/cert_status_flags.cc
@@ -43,10 +43,10 @@ int MapCertStatusToNetError(int cert_status) {
// serious error.
// Unrecoverable errors
- if (cert_status & CERT_STATUS_INVALID)
- return ERR_CERT_INVALID;
if (cert_status & CERT_STATUS_REVOKED)
return ERR_CERT_REVOKED;
+ if (cert_status & CERT_STATUS_INVALID)
+ return ERR_CERT_INVALID;
// Recoverable errors
if (cert_status & CERT_STATUS_AUTHORITY_INVALID)