Sigh, use the sorted function, not the add to tail function NSS_OTIS_BETA_2_BRANCH
authorrelyea%netscape.com
Tue, 23 Jul 2002 17:11:20 +0000
branchNSS_OTIS_BETA_2_BRANCH
changeset 3342 179f6623dc30e96d625ec086cbb9868477468393
parent 3341 f1873fb1cd126755fb849b1dcbcd9c206413616c
child 13817 a8d4abca75eafd808616c7709472c94fb45ad4f9
push idunknown
push userunknown
push dateunknown
Sigh, use the sorted function, not the add to tail function
security/nss/lib/pk11wrap/pk11cert.c
--- a/security/nss/lib/pk11wrap/pk11cert.c
+++ b/security/nss/lib/pk11wrap/pk11cert.c
@@ -1437,17 +1437,17 @@ PK11_FindCertsFromNickname(char *nicknam
     }
     if (nickCopy) PORT_Free(nickCopy);
     if (foundCerts) {
 	PRTime now = PR_Now();
 	certList = CERT_NewCertList();
 	for (i=0, c = *foundCerts; c; c = foundCerts[++i]) {
 	    CERTCertificate *certCert = STAN_GetCERTCertificate(c);
 	    if (certCert) {
-		CERT_AddCertToListTail(certList, certCert,
+		CERT_AddCertToListSorted(certList, certCert,
 			CERT_SortCBValidity, &now);
 	    }
 	}
 	if (CERT_LIST_HEAD(certList) == NULL) {
 	    CERT_DestroyCertList(certList);
 	    certList = NULL;
 	}
 	nss_ZFreeIf(foundCerts);