summaryrefslogtreecommitdiffstats
path: root/net/ocsp
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 17:31:55 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 17:31:55 +0000
commit06b43c8f5218332dd527a7611ca952eb16cdbe1d (patch)
treee450979fdae8971d6ffe6d4849694bd98603f9b3 /net/ocsp
parent8ecca49c92e69c2061bca6ab28e56d246ca60390 (diff)
downloadchromium_src-06b43c8f5218332dd527a7611ca952eb16cdbe1d.zip
chromium_src-06b43c8f5218332dd527a7611ca952eb16cdbe1d.tar.gz
chromium_src-06b43c8f5218332dd527a7611ca952eb16cdbe1d.tar.bz2
Clean up uses of static data around singletons.
This is in preparation for destroying singletons between each test. BUG=110594 TEST=Test suites. Review URL: http://codereview.chromium.org/9255020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ocsp')
-rw-r--r--net/ocsp/nss_ocsp.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc
index 6c272e2..868f5cd 100644
--- a/net/ocsp/nss_ocsp.cc
+++ b/net/ocsp/nss_ocsp.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -568,7 +568,12 @@ OCSPNSSInitialization::OCSPNSSInitialization() {
}
}
-OCSPNSSInitialization::~OCSPNSSInitialization() {}
+OCSPNSSInitialization::~OCSPNSSInitialization() {
+ SECStatus status = CERT_RegisterAlternateOCSPAIAInfoCallBack(NULL, NULL);
+ if (status != SECSuccess) {
+ LOG(ERROR) << "Error unregistering OCSP: " << PR_GetError();
+ }
+}
// OCSP Http Client functions.