summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-06-05 10:23:19 +0000
committerdes <des@FreeBSD.org>2002-06-05 10:23:19 +0000
commit300df6a8f143471815daf9edaa59ca8b838b0227 (patch)
treef74c8387d3b417485ed3cf1c05f024ab362acab8 /lib/libfetch/http.c
parente07ac3bab378d02dca475f92e0592bb4ecd5f018 (diff)
downloadFreeBSD-src-300df6a8f143471815daf9edaa59ca8b838b0227.zip
FreeBSD-src-300df6a8f143471815daf9edaa59ca8b838b0227.tar.gz
Fix a bug I introduced in the chunk decoder in the previous commit..
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r--lib/libfetch/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 0505b0a..1767080 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) {
OpenPOWER on IntegriCloud