зеркало из https://github.com/mozilla/gecko-dev.git
[Bug 337495] Double free in CRMF_CertReqMsgSetSignaturePOP (security/nss/lib/crmf/crmfpop.c). r=nelson
This commit is contained in:
Родитель
e4bbcf3081
Коммит
7cd142bd9c
|
@ -315,10 +315,10 @@ CRMF_CertReqMsgSetSignaturePOP(CRMFCertReqMsg *inCertReqMsg,
|
||||||
goto loser;
|
goto loser;
|
||||||
}
|
}
|
||||||
rv = SECITEM_CopyItem(poolp, &(inCertReqMsg->derPOP), &derDest);
|
rv = SECITEM_CopyItem(poolp, &(inCertReqMsg->derPOP), &derDest);
|
||||||
PORT_Free (derDest.data);
|
|
||||||
if (rv != SECSuccess) {
|
if (rv != SECSuccess) {
|
||||||
goto loser;
|
goto loser;
|
||||||
}
|
}
|
||||||
|
PORT_Free (derDest.data);
|
||||||
PORT_ArenaUnmark(poolp,mark);
|
PORT_ArenaUnmark(poolp,mark);
|
||||||
return SECSuccess;
|
return SECSuccess;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче