summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2002-05-21 21:26:52 +0000
committerrelyea%netscape.com <devnull@localhost>2002-05-21 21:26:52 +0000
commitea2396d491b55e960684f0bec19a386551d65c27 (patch)
treea5cd9484b952f86d740828af10811c4ebe9c18a8
parent10648278f1b79ca6081d6b85c9da6173238661c8 (diff)
downloadnss-hg-ea2396d491b55e960684f0bec19a386551d65c27.tar.gz
Don't crash if url is specified, but the crl is broken
-rw-r--r--security/nss/lib/certdb/crl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/security/nss/lib/certdb/crl.c b/security/nss/lib/certdb/crl.c
index 8eb90005a..c9caabc78 100644
--- a/security/nss/lib/certdb/crl.c
+++ b/security/nss/lib/certdb/crl.c
@@ -415,9 +415,11 @@ SEC_FindCrlByKeyOnSlot(PK11SlotInfo *slot, SECItem *crlKey, int type)
crl->slot = slot;
slot = NULL; /* adopt it */
crl->pkcs11ID = crlHandle;
+ if (url) {
+ crl->url = PORT_ArenaStrdup(crl->arena,url);
+ }
}
if (url) {
- crl->url = PORT_ArenaStrdup(crl->arena,url);
PORT_Free(url);
}