svn commit: r310823 - head/lib/libfetch
Dag-Erling Smørgrav
des at FreeBSD.org
Fri Dec 30 14:54:55 UTC 2016
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 at 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) {
More information about the svn-src-all
mailing list