Fix a bug I introduced in the chunk decoder in the previous commit..
This commit is contained in:
parent
dea29ca1d5
commit
3f4823c55d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user