diff options
author | kaie%kuix.de <devnull@localhost> | 2008-05-28 18:03:11 +0000 |
---|---|---|
committer | kaie%kuix.de <devnull@localhost> | 2008-05-28 18:03:11 +0000 |
commit | e48ccf281f52ba475b5d8583dc83bde02200946c (patch) | |
tree | 5144cc82d9b61281c812375e29b7d2137d6c9a14 | |
parent | 9bb9283725ff70585750a414ecf4a0fc1644d0e5 (diff) | |
download | nss-hg-e48ccf281f52ba475b5d8583dc83bde02200946c.tar.gz |
Bug 433594: Crash destroying OCSP Cert ID
Patch from Nelson Bolyard
r=julien.pierre, r=kaie, a1.9=shaver
-rw-r--r-- | security/nss/lib/certhigh/ocsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/nss/lib/certhigh/ocsp.c b/security/nss/lib/certhigh/ocsp.c index 241457af3..585001d41 100644 --- a/security/nss/lib/certhigh/ocsp.c +++ b/security/nss/lib/certhigh/ocsp.c @@ -1516,10 +1516,11 @@ loser: SECStatus CERT_DestroyOCSPCertID(CERTOCSPCertID* certID) { - if (certID->poolp) { + if (certID && certID->poolp) { PORT_FreeArena(certID->poolp, PR_FALSE); return SECSuccess; } + PORT_SetError(SEC_ERROR_INVALID_ARGS); return SECFailure; } |