From 03c4ee2b2522f361414230a3ca0b3fdd12fca6a4 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 1 Jun 2009 20:35:49 +0200
Subject: [PATCH 08/10] Incrementing datap has no effect here, it isn't read before returning.

---
 lib/http_chunks.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git lib/http_chunks.c lib/http_chunks.c
index b4cad61..52ffc7f 100644
--- lib/http_chunks.c
+++ lib/http_chunks.c
@@ -345,7 +345,6 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn,
         conn->trailer[conn->trlPos]=0;
         if(conn->trlPos==2) {
           ch->state = CHUNK_STOP;
-          datap++;
           length--;
 
           /*
@@ -400,7 +399,6 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn,
 
     case CHUNK_STOP:
       if(*datap == 0x0a) {
-        datap++;
         length--;
 
         /* Record the length of any data left in the end of the buffer
-- 
1.6.3.1


