1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- nss/lib/certdb/crl.c
+++ nss/lib/certdb/crl.c
@@ -2150,7 +2150,7 @@
return SECSuccess;
}
/* all CRLs are good, sort them by thisUpdate */
- qsort(cache->crls, cache->ncrls, sizeof(CachedCrl*),
+ if (cache->ncrls != 0) qsort(cache->crls, cache->ncrls, sizeof(CachedCrl*),
SortCRLsByThisUpdate);
if (cache->ncrls)
--- nss/lib/libpkix/pkix/util/pkix_tools.h
+++ nss/lib/libpkix/pkix/util/pkix_tools.h
@@ -1458,8 +1458,8 @@
extern PRLogModuleInfo *pkixLog;
-#define PKIX_MAGIC_HEADER LL_INIT(0xFEEDC0FF, 0xEEFACADE)
-#define PKIX_MAGIC_HEADER_DESTROYED LL_INIT(0xBAADF00D, 0xDEADBEEF)
+#define PKIX_MAGIC_HEADER LL_INIT(0xFEEDC0FFU, 0xEEFACADEU)
+#define PKIX_MAGIC_HEADER_DESTROYED LL_INIT(0xBAADF00DU, 0xDEADBEEFU)
/* see source file for function documentation */
|