summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-03-01 14:06:32 +0100
committerDr. David von Oheimb <dev@ddvo.net>2021-03-06 16:18:18 +0100
commit73e6e3e03eaabd7b28b6a727383006c6ee1caaf7 (patch)
treec546aeea5b66fbbfa5d4a4ac4c28e7602f096f3a
parentMake more use of X509_add_certs(); minor related code & comments cleanup (diff)
downloadopenssl-73e6e3e03eaabd7b28b6a727383006c6ee1caaf7.tar.xz
openssl-73e6e3e03eaabd7b28b6a727383006c6ee1caaf7.zip
Simplify OCSP_sendreq_bio()
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14356)
-rw-r--r--crypto/ocsp/ocsp_http.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/ocsp/ocsp_http.c b/crypto/ocsp/ocsp_http.c
index 4867929424..907720aac1 100644
--- a/crypto/ocsp/ocsp_http.c
+++ b/crypto/ocsp/ocsp_http.c
@@ -50,17 +50,16 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
{
OCSP_RESPONSE *resp = NULL;
OSSL_HTTP_REQ_CTX *ctx;
- int rv;
ctx = OCSP_sendreq_new(b, path, req, -1 /* default max resp line length */);
if (ctx == NULL)
return NULL;
- rv = OCSP_sendreq_nbio(&resp, ctx);
+ OCSP_sendreq_nbio(&resp, ctx);
/* this indirectly calls ERR_clear_error(): */
OSSL_HTTP_REQ_CTX_free(ctx);
- return rv == 1 ? resp : NULL;
+ return resp;
}
#endif /* !defined(OPENSSL_NO_OCSP) */