From dbb3c65288e219ce3f05efc3fb6c84ff96cf24a9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 26 May 2011 17:43:17 -0400 Subject: [PATCH] Fix compilation. --- http.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http.c b/http.c index b04fa5a1..27ca4292 100644 --- a/http.c +++ b/http.c @@ -840,8 +840,6 @@ evhttp_connection_done(struct evhttp_connection *evcon) static enum message_read_status evhttp_handle_chunked_read(struct evhttp_request *req, struct evbuffer *buf) { - ev_ssize_t len; - if (req == NULL || buf == NULL) { return DATA_CORRUPTED; } @@ -909,7 +907,7 @@ evhttp_handle_chunked_read(struct evhttp_request *req, struct evbuffer *buf) } /* don't have enough to complete a chunk; wait for more */ - if (len < req->ntoread) + if (buflen < req->ntoread) return (MORE_DATA_EXPECTED); /* Completed chunk */