summaryrefslogtreecommitdiff
path: root/security/nss/lib/pki/cryptocontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/pki/cryptocontext.c')
-rw-r--r--security/nss/lib/pki/cryptocontext.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/security/nss/lib/pki/cryptocontext.c b/security/nss/lib/pki/cryptocontext.c
index e8ea8cf73..f1cac0d87 100644
--- a/security/nss/lib/pki/cryptocontext.c
+++ b/security/nss/lib/pki/cryptocontext.c
@@ -89,11 +89,15 @@ NSSCryptoContext_Destroy (
NSSCryptoContext *cc
)
{
+ PRStatus status = PR_SUCCESS;
if (cc->certStore) {
- nssCertificateStore_Destroy(cc->certStore);
+ status = nssCertificateStore_Destroy(cc->certStore);
+ if (status == PR_FAILURE) {
+ return status;
+ }
}
nssArena_Destroy(cc->arena);
- return PR_SUCCESS;
+ return status;
}
NSS_IMPLEMENT PRStatus