From a906b21c0a655b071ec1663d0cb27bf0bdbdc010 Mon Sep 17 00:00:00 2001 From: "julien.pierre.bugs%sun.com" Date: Thu, 3 Mar 2005 04:07:26 +0000 Subject: [PATCH] Fix crash in CRL sorting callbacks from qsort. git-svn-id: svn://10.0.0.236/trunk@170118 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/certdb/crl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/security/nss/lib/certdb/crl.c b/mozilla/security/nss/lib/certdb/crl.c index 7c61d14e909..f55af084a95 100644 --- a/mozilla/security/nss/lib/certdb/crl.c +++ b/mozilla/security/nss/lib/certdb/crl.c @@ -37,7 +37,7 @@ /* * Moved from secpkcs7.c * - * $Id: crl.c,v 1.45 2005-02-25 00:54:29 julien.pierre.bugs%sun.com Exp $ + * $Id: crl.c,v 1.46 2005-03-03 04:07:26 julien.pierre.bugs%sun.com Exp $ */ #include "cert.h" @@ -1936,8 +1936,8 @@ static int SortCRLsByThisUpdate(const void* arg1, const void* arg2) SECStatus rv = SECSuccess; CachedCrl* a, *b; - a = (CachedCrl*) arg1; - b = (CachedCrl*) arg2; + a = *(CachedCrl**) arg1; + b = *(CachedCrl**) arg2; if (!a || !b) { @@ -1982,8 +1982,8 @@ static int SortImperfectCRLs(const void* arg1, const void* arg2) { CachedCrl* a, *b; - a = (CachedCrl*) arg1; - b = (CachedCrl*) arg2; + a = *(CachedCrl**) arg1; + b = *(CachedCrl**) arg2; if (!a || !b) {