diff options
author | julien.pierre.boogz%sun.com <devnull@localhost> | 2008-03-25 05:02:22 +0000 |
---|---|---|
committer | julien.pierre.boogz%sun.com <devnull@localhost> | 2008-03-25 05:02:22 +0000 |
commit | d9046c745d919b3de4c15e3c118829491fdfabae (patch) | |
tree | 5ebefa622c9e4f67724d61314399cfd0356ceb80 | |
parent | 0661f335c81f64fc86b33793813eee5e75d2f467 (diff) | |
download | nss-hg-d9046c745d919b3de4c15e3c118829491fdfabae.tar.gz |
Fix for bug 391721 . GetBestCRL does not set error code when CRL is not found or invalid. r=nelson
-rw-r--r-- | security/nss/lib/certdb/crl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/lib/certdb/crl.c b/security/nss/lib/certdb/crl.c index c076b070b..4ae233b18 100644 --- a/security/nss/lib/certdb/crl.c +++ b/security/nss/lib/certdb/crl.c @@ -2320,6 +2320,7 @@ static CERTSignedCrl* GetBestCRL(CRLDPCache* cache, PRBool entries) if (0 == cache->ncrls) { /* empty cache*/ + PORT_SetError(SEC_ERROR_CRL_NOT_FOUND); return NULL; } @@ -2345,6 +2346,7 @@ static CERTSignedCrl* GetBestCRL(CRLDPCache* cache, PRBool entries) } } + PORT_SetError(SEC_ERROR_CRL_NOT_FOUND); return NULL; } |