diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-06-05 10:23:19 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-06-05 10:23:19 +0000 |
commit | 3f4823c55dee0a148a201cbbdfc8cdda82b3b2b3 (patch) | |
tree | f74c8387d3b417485ed3cf1c05f024ab362acab8 /lib/libfetch | |
parent | dea29ca1d5850eb6fd7771a1ad8f41ce46665995 (diff) | |
download | src-3f4823c55dee0a148a201cbbdfc8cdda82b3b2b3.tar.gz src-3f4823c55dee0a148a201cbbdfc8cdda82b3b2b3.zip |
Fix a bug I introduced in the chunk decoder in the previous commit..
Notes
Notes:
svn path=/head/; revision=97857
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 0505b0a63551..17670808fb47 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -130,7 +130,7 @@ _http_new_chunk(struct cookie *c) if (_fetch_getln(c->conn) == -1) return (-1); - if (c->b_len < 2 || !ishexnumber(*c->conn->buf)) + if (c->conn->buflen < 2 || !ishexnumber(*c->conn->buf)) return (-1); for (p = c->conn->buf; *p && !isspace(*p); ++p) { |