summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-06-19 04:17:11 +0000
committerwtc%netscape.com <devnull@localhost>2003-06-19 04:17:11 +0000
commit5d6f513ce096833306f6ebdfa857ee49d88d6540 (patch)
tree567a873678e87c46d8d444b98773326acbf9c0b4
parent727c892784ea3539799062bc9d62bf08e915706f (diff)
downloadnss-hg-5d6f513ce096833306f6ebdfa857ee49d88d6540.tar.gz
Bug 208996: removed an assertion that's no longer valid after the recent
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_8_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 54c279ca4..be0c56ac4 100644
--- a/security/nss/lib/pkcs7/p7decode.c
+++ b/security/nss/lib/pkcs7/p7decode.c
@@ -277,11 +277,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;