From 21ca0912c676d76321924134f9969c41cb896d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 30 Dec 2016 14:54:54 +0000 Subject: [PATCH] Fix inverted loop condition which broke multi-line responses to CONNECT. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: 194483 Submitted by: MiƂosz Kaniewski MFC after: 1 week --- lib/libfetch/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 0c575d0886f1..bb509c182dd5 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -1432,7 +1432,7 @@ http_connect(struct url *URL, struct url *purl, const char *flags) default: /* ignore */ ; } - } while (h < hdr_end); + } while (h > hdr_end); } if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && fetch_ssl(conn, URL, verbose) == -1) {