diff options
author | wtc%netscape.com <devnull@localhost> | 2002-08-01 05:17:49 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-08-01 05:17:49 +0000 |
commit | 4a66f6c80b4109ad73c15d761dda759f9ba870db (patch) | |
tree | f2844ea153934ff406e69a7f044b0ad3c4e6dd41 | |
parent | a889d6479cf25d4abff0ac101be333214561b851 (diff) | |
download | nss-hg-4a66f6c80b4109ad73c15d761dda759f9ba870db.tar.gz |
Bug 157730: minor tweak suggested by brendan.
-rw-r--r-- | security/nss/lib/pki/pki3hack.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/security/nss/lib/pki/pki3hack.c b/security/nss/lib/pki/pki3hack.c index c26cc927b..67c6a1ef6 100644 --- a/security/nss/lib/pki/pki3hack.c +++ b/security/nss/lib/pki/pki3hack.c @@ -433,17 +433,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); |