openssl/crypto/ocsp
Todd Short 941d9fb6bd OCSP_request_add0_id() inconsistent error return
There are two failure cases for OCSP_request_add_id():
1. OCSP_ONEREQ_new() failure, where |cid| is not freed
2. sk_OCSP_ONEREQ_push() failure, where |cid| is freed

This changes makes the error behavior consistent, such that |cid| is
not freed when sk_OCSP_ONEREQ_push() fails. OpenSSL only takes
ownership of |cid| when the function succeeds.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1289)
(cherry picked from commit 415e7c488e)
2016-07-20 01:29:16 -04:00
..
Makefile Fix the update target and remove duplicate file updates 2015-05-23 06:25:12 +02:00
ocsp.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ocsp_asn.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ocsp_cl.c OCSP_request_add0_id() inconsistent error return 2016-07-20 01:29:16 -04:00
ocsp_err.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ocsp_ext.c Change usage of RAND_pseudo_bytes to RAND_bytes 2016-06-27 15:00:08 +01:00
ocsp_ht.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ocsp_lib.c GH837: Avoid double-free in OCSP parse. 2016-05-10 13:41:06 -04:00
ocsp_prn.c Remove useless code 2015-10-23 20:32:59 +02:00
ocsp_srv.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ocsp_vfy.c Make OCSP response verification more flexible. 2015-03-24 12:14:04 +00:00