Fix return-value checks in OCSP_resp_get1_id()
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 26 Jun 2017 17:05:09 +0000 (12:05 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 27 Jun 2017 15:49:53 +0000 (10:49 -0500)
commitc91ec013654e97ca1754db26bd2da62c8bbf7b47
tree417c4ea3ca0b9845d400c9cd634be57c96d45e30
parent0ffdaebf9a327f3b356df1cf72d74dd15ead7d13
Fix return-value checks in OCSP_resp_get1_id()

Commit db17e43d882ecde217e1dce4a2b8c76c3ed134bf added the function
but would improperly report success if the underlying dup operation
failed.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3775)
crypto/ocsp/ocsp_cl.c