diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2022-06-28 11:51:32 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-07-06 08:21:53 +0100 |
commit | 059a4ad0999dd6dbd7340b5e4f7566812d51bb1e (patch) | |
tree | 34af4c6d7a73a22c3cf6196854476d9dfccba838 /crypto | |
parent | 35750cb9af007702dad92d62da57200fdf9ddaf4 (diff) | |
download | openssl-new-059a4ad0999dd6dbd7340b5e4f7566812d51bb1e.tar.gz |
OSSL_HTTP_REQ_CTX_nbio(): fix copy&paste glitch calling BIO_should_retry(rctx-rbio)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18674)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/http/http_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c index 96b18dc9d3..12e414efae 100644 --- a/crypto/http/http_client.c +++ b/crypto/http/http_client.c @@ -574,7 +574,7 @@ int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx) if (rctx->req != NULL && !BIO_eof(rctx->req)) { n = BIO_read(rctx->req, rctx->buf, rctx->buf_size); if (n <= 0) { - if (BIO_should_retry(rctx->rbio)) + if (BIO_should_retry(rctx->req)) return -1; ERR_raise(ERR_LIB_HTTP, HTTP_R_FAILED_READING_DATA); return 0; |