diff options
author | alexei.volkov.bugs%sun.com <devnull@localhost> | 2006-05-13 00:03:40 +0000 |
---|---|---|
committer | alexei.volkov.bugs%sun.com <devnull@localhost> | 2006-05-13 00:03:40 +0000 |
commit | 173f7f6cfd065e6ac87b00803165e1a7715a142e (patch) | |
tree | b058c8882340bd213695a8ae8091e9049d42ba73 | |
parent | 9bc82d4c8e1cd0009f6f211dd943441feafb0416 (diff) | |
download | nss-hg-173f7f6cfd065e6ac87b00803165e1a7715a142e.tar.gz |
Patch contributed by timeless@bemail.org
[Bug 336481] oom crash [@ crmf_copy_cert_req_msg]
-rw-r--r-- | security/nss/lib/crmf/servget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/nss/lib/crmf/servget.c b/security/nss/lib/crmf/servget.c index 165ce5924..45b056fa4 100644 --- a/security/nss/lib/crmf/servget.c +++ b/security/nss/lib/crmf/servget.c @@ -510,10 +510,11 @@ crmf_copy_cert_req_msg(CRMFCertReqMsg *srcReqMsg) return NULL; } newReqMsg = PORT_ArenaZNew(poolp, CRMFCertReqMsg); - newReqMsg->poolp = poolp; if (newReqMsg == NULL) { goto loser; } + + newReqMsg->poolp = poolp; newReqMsg->certReq = crmf_copy_cert_request(poolp, srcReqMsg->certReq); if (newReqMsg->certReq == NULL) { goto loser; |