Date: Fri, 30 Dec 2016 14:54:54 +0000 (UTC) From: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r310823 - head/lib/libfetch Message-ID: <201612301454.uBUEssCb039067@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Fri Dec 30 14:54:54 2016 New Revision: 310823 URL: https://svnweb.freebsd.org/changeset/base/310823 Log: Fix inverted loop condition which broke multi-line responses to CONNECT. PR: 194483 Submitted by: MiĆosz Kaniewski <milosz.kaniewski@gmail.com> MFC after: 1 week Modified: head/lib/libfetch/http.c Modified: head/lib/libfetch/http.c ============================================================================== --- head/lib/libfetch/http.c Fri Dec 30 14:47:46 2016 (r310822) +++ head/lib/libfetch/http.c Fri Dec 30 14:54:54 2016 (r310823) @@ -1432,7 +1432,7 @@ http_connect(struct url *URL, struct url default: /* ignore */ ; } - } while (h < hdr_end); + } while (h > hdr_end); } if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && fetch_ssl(conn, URL, verbose) == -1) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612301454.uBUEssCb039067>