summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-08-01 05:12:29 +0000
committerwtc%netscape.com <devnull@localhost>2002-08-01 05:12:29 +0000
commitd3e9f5642c96336d4178027296d5b90b6d358b56 (patch)
treebd63a8881e266c7233f298091bc651388d37d51d
parentc490667442db69b6e8a6c10b6fc2f9c5aaab2e1f (diff)
downloadnss-hg-d3e9f5642c96336d4178027296d5b90b6d358b56.tar.gz
Bug 157730: minor tweak over the previous checkin suggested by brendan.
Tag: NSS_3_5_BRANCH
-rw-r--r--security/nss/lib/pki/pki3hack.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/security/nss/lib/pki/pki3hack.c b/security/nss/lib/pki/pki3hack.c
index 29e40c8a0..66a482312 100644
--- a/security/nss/lib/pki/pki3hack.c
+++ b/security/nss/lib/pki/pki3hack.c
@@ -429,17 +429,14 @@ nssDecodedPKIXCertificate_Destroy
)
{
CERTCertificate *cert = (CERTCertificate *)dc->data;
- PRBool freeSlot = PR_FALSE;
- PK11SlotInfo *slot = NULL;
- PRArenaPool *arena;
/* The decoder may only be half initialized (the case where we find we
* could not decode the certificate). In this case, there is not cert to
* free, just free the dc structure. */
if (cert) {
- freeSlot = cert->ownSlot;
- slot = cert->slot;
- arena = cert->arena;
+ PRBool freeSlot = cert->ownSlot;
+ PK11SlotInfo *slot = cert->slot;
+ PRArenaPool *arena = cert->arena;
/* zero cert before freeing. Any stale references to this cert
* after this point will probably cause an exception. */
PORT_Memset(cert, 0, sizeof *cert);