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 * |