blob: 70d4af89ff19dcd75cd616af22f8db754752051c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- nss/lib/certdb/crl.c
+++ nss/lib/certdb/crl.c
@@ -1982,7 +1982,7 @@
return SECSuccess;
}
/* all CRLs are good, sort them by thisUpdate */
- qsort(cache->crls, cache->ncrls, sizeof(CachedCrl*), SortCRLsByThisUpdate);
+ if (cache->ncrls != 0) qsort(cache->crls, cache->ncrls, sizeof(CachedCrl*), SortCRLsByThisUpdate);
if (cache->ncrls) {
/* pick the newest CRL */
|