From 1e4c76569ff6b9698ba5b52d7b331a6f3a77cefb Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Sat, 2 Aug 2014 00:46:01 +0900
Subject: [PATCH] Break if is_empty_data is true at the end of the while loop

---
 lib/transfer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/transfer.c b/lib/transfer.c
index dc817a6..ec07382 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -783,6 +783,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
       /* if we received nothing, the server closed the connection and we
          are done */
       k->keepon &= ~KEEP_RECV;
+      break;
     }
 
   } while(data_pending(conn));
-- 
2.0.1

