This commit is contained in:
ian.mcgreer%sun.com 2002-02-06 23:11:08 +00:00
Родитель a6c44d0c44
Коммит 6b3e8a8041
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -32,7 +32,7 @@
*/
#ifdef DEBUG
static const char CVS_ID[] = "@(#) $RCSfile: pkistore.c,v $ $Revision: 1.6 $ $Date: 2002/02/05 23:55:42 $ $Name: $";
static const char CVS_ID[] = "@(#) $RCSfile: pkistore.c,v $ $Revision: 1.7 $ $Date: 2002/02/06 23:11:08 $ $Name: $";
#endif /* DEBUG */
#ifndef PKIM_H
@ -476,7 +476,7 @@ nssCertificateStore_FindCertificatesByEmail
NSSCertificate **rvArray = NULL;
struct email_template_str et;
et.email = email;
et.emailList = nssList_Create(store->arena, PR_FALSE);
et.emailList = nssList_Create(NULL, PR_FALSE);
if (!et.emailList) {
return NULL;
}
@ -493,12 +493,12 @@ nssCertificateStore_FindCertificatesByEmail
for (i=0; i<count; i++) nssCertificate_AddRef(rvOpt[i]);
} else {
rvArray = nss_ZNEWARRAY(arenaOpt, NSSCertificate *, count + 1);
if (!rvArray) {
return (NSSCertificate **)NULL;
if (rvArray) {
nssList_GetArray(et.emailList, (void **)rvArray, count);
for (i=0; i<count; i++) nssCertificate_AddRef(rvArray[i]);
}
nssList_GetArray(et.emailList, (void **)rvArray, count);
for (i=0; i<count; i++) nssCertificate_AddRef(rvArray[i]);
}
nssList_Destroy(et.emailList);
}
return rvArray;
}