checked in wrong fix.
git-svn-id: svn://10.0.0.236/trunk@80409 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
/*
|
||||
* cmsutil -- A command to work with CMS data
|
||||
*
|
||||
* $Id: cmsutil.c,v 1.8 2000-10-05 01:39:35 mcgreer%netscape.com Exp $
|
||||
* $Id: cmsutil.c,v 1.9 2000-10-05 02:41:09 mcgreer%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "nspr.h"
|
||||
@@ -47,7 +47,6 @@
|
||||
#include "secoid.h"
|
||||
#include "cms.h"
|
||||
#include "smime.h"
|
||||
#include "cmslocal.h"
|
||||
|
||||
#if defined(XP_UNIX)
|
||||
#include <unistd.h>
|
||||
@@ -525,7 +524,9 @@ enveloped_data(struct envelopeOptionsStr envelopeOptions)
|
||||
}
|
||||
/* XXX find the recipient's certs by email address or nickname */
|
||||
if ((recipientcerts =
|
||||
(CERTCertificate **)NSS_CMSArray_Alloc(tmppoolp, cnt+1)) == NULL) {
|
||||
(CERTCertificate **)PORT_ArenaZAlloc(tmppoolp,
|
||||
(cnt+1)*sizeof(CERTCertificate*)))
|
||||
== NULL) {
|
||||
fprintf(stderr, "ERROR: out of memory.\n");
|
||||
goto loser;
|
||||
}
|
||||
@@ -773,7 +774,9 @@ signed_data_certsonly(struct certsonlyOptionsStr certsonlyOptions)
|
||||
goto loser;
|
||||
}
|
||||
if ((certs =
|
||||
(CERTCertificate **)NSS_CMSArray_Alloc(tmppoolp, cnt+1)) == NULL) {
|
||||
(CERTCertificate **)PORT_ArenaZAlloc(tmppoolp,
|
||||
(cnt+1)*sizeof(CERTCertificate*)))
|
||||
== NULL) {
|
||||
fprintf(stderr, "ERROR: out of memory.\n");
|
||||
goto loser;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user