Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: nss/lib/pk11wrap/dev3hack.c

Issue 1017413002: Uprev NSS to 3.18 RTM (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@nspr_uprev
Patch Set: Rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nss/lib/nss/nss.h ('k') | nss/lib/pk11wrap/pk11cert.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nss/lib/pk11wrap/dev3hack.c
diff --git a/nss/lib/pk11wrap/dev3hack.c b/nss/lib/pk11wrap/dev3hack.c
index a748e524a7f6d20cc26632fc83a51bb7c37cf5cb..c1fe55c5e3efaa9d6c30efb5e1a41a5c0fad2fe9 100644
--- a/nss/lib/pk11wrap/dev3hack.c
+++ b/nss/lib/pk11wrap/dev3hack.c
@@ -92,14 +92,14 @@ nssSession_Destroy
nssSession *s
)
{
- CK_RV ckrv = CKR_OK;
+ PRStatus rv = PR_SUCCESS;
if (s) {
if (s->isRW) {
PK11_RestoreROSession(s->slot->pk11slot, s->handle);
}
- nss_ZFreeIf(s);
+ rv = nss_ZFreeIf(s);
}
- return (ckrv == CKR_OK) ? PR_SUCCESS : PR_FAILURE;
+ return rv;
}
static NSSSlot *
« no previous file with comments | « nss/lib/nss/nss.h ('k') | nss/lib/pk11wrap/pk11cert.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698