Skip to content

Commit

Permalink
OSSL_HTTP_REQ_CTX_nbio(): fix copy&paste glitch calling BIO_should_re…
Browse files Browse the repository at this point in the history
…try(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 #18674)

(cherry picked from commit 059a4ad)
  • Loading branch information
DDvO authored and hlandau committed Jul 6, 2022
1 parent 941a1ff commit ee4b91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/http/http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,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;
Expand Down

0 comments on commit ee4b91f

Please sign in to comment.