Fix a bug I introduced in the chunk decoder in the previous commit..

This commit is contained in:
Dag-Erling Smørgrav 2002-06-05 10:23:19 +00:00
parent dea29ca1d5
commit 3f4823c55d

View File

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