summaryrefslogtreecommitdiff
path: root/lib/crmf
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2016-06-21 09:59:17 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2016-06-21 09:59:17 +1000
commit3082d76069da26a2f1a781cfb568c656a3e5900e (patch)
treee2b546e88110a61c1658596b7be4efa93662947f /lib/crmf
parent91f384c7394c15d0352b5f78e7c93005a50c93fe (diff)
downloadnss-hg-3082d76069da26a2f1a781cfb568c656a3e5900e.tar.gz
Bug 1280844 - Remove some redundant null checks in lib/. r=mt.
MozReview-Commit-ID: 7fYJMjQyHQb
Diffstat (limited to 'lib/crmf')
-rw-r--r--lib/crmf/servget.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/crmf/servget.c b/lib/crmf/servget.c
index 214495480..6d576f8f1 100644
--- a/lib/crmf/servget.c
+++ b/lib/crmf/servget.c
@@ -496,9 +496,7 @@ crmf_copy_cert_req_msg(CRMFCertReqMsg *srcReqMsg)
return newReqMsg;
loser:
- if (newReqMsg != NULL) {
- CRMF_DestroyCertReqMsg(newReqMsg);
- }
+ CRMF_DestroyCertReqMsg(newReqMsg);
return NULL;
}
@@ -868,9 +866,7 @@ CRMF_CertRequestGetControlAtIndex(CRMFCertRequest *inCertReq, int index)
}
return newControl;
loser:
- if (newControl != NULL) {
- CRMF_DestroyControl(newControl);
- }
+ CRMF_DestroyControl(newControl);
return NULL;
}