From: Dr. David von Oheimb Date: Tue, 28 Jun 2022 09:51:32 +0000 (+0200) Subject: OSSL_HTTP_REQ_CTX_nbio(): fix copy&paste glitch calling BIO_should_retry(rctx-rbio) X-Git-Tag: openssl-3.2.0-alpha1~2426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059a4ad0999dd6dbd7340b5e4f7566812d51bb1e;p=thirdparty%2Fopenssl.git OSSL_HTTP_REQ_CTX_nbio(): fix copy&paste glitch calling BIO_should_retry(rctx-rbio) Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/18674) --- diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c index 96b18dc9d38..12e414efaed 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;