summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-06-11 01:50:29 +0000
committerwtc%netscape.com <devnull@localhost>2003-06-11 01:50:29 +0000
commit10b71892e0752fdf03b904ee103e239b99ea2615 (patch)
tree423d2e6ca62f847a13c9ca7c15705ba89393526a
parente9998fdf6237de91292af9c6f9230de15337d613 (diff)
downloadnss-hg-10b71892e0752fdf03b904ee103e239b99ea2615.tar.gz
Bug 208996: removed an assertion that's no longer valid after the recentNSS_3_7_7_BETA2
change to secasn1d.c. Now an empty "group" is decoded into an array containing only the terminating NULL pointer, so it is possible for digcnt to be 0. Tag: NSS_3_7_BRANCH
-rw-r--r--security/nss/lib/pkcs7/p7decode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/security/nss/lib/pkcs7/p7decode.c b/security/nss/lib/pkcs7/p7decode.c
index 74539c8c3..1d3cbaf54 100644
--- a/security/nss/lib/pkcs7/p7decode.c
+++ b/security/nss/lib/pkcs7/p7decode.c
@@ -281,11 +281,8 @@ sec_pkcs7_decoder_start_digests (SEC_PKCS7DecoderContext *p7dcx, int depth,
/*
* No algorithms means no work to do.
- * This is not expected, so cause an assert.
- * But if it does happen, just act as if there were
- * no algorithms specified.
+ * Just act as if there were no algorithms specified.
*/
- PORT_Assert (digcnt != 0);
if (digcnt == 0)
return SECSuccess;