зеркало из https://github.com/mozilla/gecko-dev.git
Bug 95531 - correct ref count on certificate in CMS (SMIME) recipient
handling.
This commit is contained in:
Родитель
14f6d15bc2
Коммит
4bcbbe17a6
|
@ -34,7 +34,7 @@
|
|||
/*
|
||||
* CMS recipientInfo methods.
|
||||
*
|
||||
* $Id: cmsrecinfo.c,v 1.4 2001/06/21 20:50:06 wtc%netscape.com Exp $
|
||||
* $Id: cmsrecinfo.c,v 1.5 2001/08/17 16:48:50 thayes%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "cmslocal.h"
|
||||
|
@ -361,7 +361,8 @@ NSS_CMSRecipientInfo_UnwrapBulkKey(NSSCMSRecipientInfo *ri, int subIndex,
|
|||
SECItem *enckey;
|
||||
int error;
|
||||
|
||||
ri->cert = cert; /* mark the recipientInfo so we can find it later */
|
||||
ri->cert = CERT_DupCertificate(cert);
|
||||
/* mark the recipientInfo so we can find it later */
|
||||
|
||||
switch (ri->recipientInfoType) {
|
||||
case NSSCMSRecipientInfoID_KeyTrans:
|
||||
|
|
Загрузка…
Ссылка в новой задаче