We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb7c48 commit 2364429Copy full SHA for 2364429
security/nss/lib/smime/cmssigdata.c
@@ -34,7 +34,7 @@
34
/*
35
* CMS signedData methods.
36
*
37
- * $Id: cmssigdata.c,v 1.4 2000/09/13 18:13:17 mcgreer%netscape.com Exp $
+ * $Id: cmssigdata.c,v 1.5 2000/09/13 22:44:28 mcgreer%netscape.com Exp $
38
*/
39
40
#include "cmslocal.h"
@@ -404,8 +404,10 @@ NSS_CMSSignedData_Decode_AfterEnd(NSSCMSSignedData *sigd)
404
signerinfos = sigd->signerInfos;
405
406
/* set cmsg for all the signerinfos */
407
- for (i = 0; signerinfos[i] != NULL; i++)
408
- signerinfos[i]->cmsg = sigd->cmsg;
+ if (signerinfos) {
+ for (i = 0; signerinfos[i] != NULL; i++)
409
+ signerinfos[i]->cmsg = sigd->cmsg;
410
+ }
411
412
return SECSuccess;
413
}
0 commit comments