diff options
author | wtc%netscape.com <devnull@localhost> | 2002-03-15 20:17:15 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-03-15 20:17:15 +0000 |
commit | caaa736fe8c368af2132f542fa43eecc8d17eb87 (patch) | |
tree | 070b090cf1afadfff1a807b30624503150ef2b89 | |
parent | 689ef48fa1ee44877b0e6da466f15ea047c91f20 (diff) | |
download | nss-hg-caaa736fe8c368af2132f542fa43eecc8d17eb87.tar.gz |
Bugzilla bug 130983: SEC_FindCrlByName needs to set the 'pkcs11ID' field
of the CERTSignedCrl structure it returns. The patch is contributed by
Rangan Sen <rangansen@netscape.com>. r=relyea.
-rw-r--r-- | security/nss/lib/certdb/crl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/lib/certdb/crl.c b/security/nss/lib/certdb/crl.c index 4d6751a78..8eb90005a 100644 --- a/security/nss/lib/certdb/crl.c +++ b/security/nss/lib/certdb/crl.c @@ -408,11 +408,13 @@ SEC_FindCrlByKeyOnSlot(PK11SlotInfo *slot, SECItem *crlKey, int type) if (derCrl == NULL) { goto loser; } + PORT_Assert(crlHandle != CK_INVALID_HANDLE); crl = CERT_DecodeDERCrl(NULL, derCrl, type); if (crl) { crl->slot = slot; slot = NULL; /* adopt it */ + crl->pkcs11ID = crlHandle; } if (url) { crl->url = PORT_ArenaStrdup(crl->arena,url); |