openssl/crypto/ocsp
Todd Short 415e7c488e 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)
2016-07-20 01:24:57 -04:00
..
build.info unified build scheme: add build.info files 2016-02-01 12:46:58 +01:00
ocsp_asn.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
ocsp_cl.c OCSP_request_add0_id() inconsistent error return 2016-07-20 01:24:57 -04:00
ocsp_err.c Remove unused error/function codes. 2016-05-23 15:04:23 -04:00
ocsp_ext.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
ocsp_ht.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
ocsp_lcl.h Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
ocsp_lib.c Useless header include of openssl/rand.h 2016-06-18 16:30:24 -04:00
ocsp_prn.c Tidy up OCSP print handling. 2016-06-02 15:30:27 +01:00
ocsp_srv.c Useless header include of openssl/rand.h 2016-06-18 16:30:24 -04:00
ocsp_vfy.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
v3_ocsp.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00