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) {