another instance of potentially null signerInfos being referenced

This commit is contained in:
mcgreer%netscape.com 2000-09-13 22:44:28 +00:00
parent 8eb7c4896e
commit 2364429bbd

View File

@ -34,7 +34,7 @@
/*
* CMS signedData methods.
*
* $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 $
*/
#include "cmslocal.h"
@ -404,8 +404,10 @@ NSS_CMSSignedData_Decode_AfterEnd(NSSCMSSignedData *sigd)
signerinfos = sigd->signerInfos;
/* set cmsg for all the signerinfos */
for (i = 0; signerinfos[i] != NULL; i++)
signerinfos[i]->cmsg = sigd->cmsg;
if (signerinfos) {
for (i = 0; signerinfos[i] != NULL; i++)
signerinfos[i]->cmsg = sigd->cmsg;
}
return SECSuccess;
}