Since commit 54907bb84896 (BUG/MEDIUM: ssl: Revamp the way early data are
handled), we no longer make use of `need_out` variable.

Fixes: 54907bb84896 ("BUG/MEDIUM: ssl: Revamp the way early data are
handled.")
Reported-by: Ilya Shipitsin <chipits...@gmail.com>
Signed-off-by: William Dauchy <w.dau...@criteo.com>
---
 src/ssl_sock.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index e4dd913a..f6ef2e50 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -6537,8 +6537,6 @@ static size_t ssl_sock_to_buf(struct connection *conn, 
void *xprt_ctx, struct bu
         * EINTR too.
         */
        while (count > 0) {
-               int need_out = 0;
-
                try = b_contig_space(buf);
                if (!try)
                        break;
@@ -6595,8 +6593,6 @@ static size_t ssl_sock_to_buf(struct connection *conn, 
void *xprt_ctx, struct bu
                        /* otherwise it's a real error */
                        goto out_error;
                }
-               if (need_out)
-                       break;
        }
  leave:
        return done;
-- 
2.24.1


Reply via email to