]> granicus.if.org Git - curl/commitdiff
Revert "telnet.c: fix handling of 0 being returned from custom read function"
authorMarc Hoersken <info@marc-hoersken.de>
Tue, 24 Feb 2015 23:16:10 +0000 (00:16 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 24 Feb 2015 23:16:10 +0000 (00:16 +0100)
This reverts commit 03fa576833643c67579ae216c4e7350fa9b5f2fe.

lib/telnet.c

index 6904c4ce369029c6340cdeda17c1a814f0eaeb27..fd5822e77a4882388d4de2eb62916447721fd962 100644 (file)
@@ -1439,10 +1439,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
           if(result == CURL_READFUNC_PAUSE)
             break;
 
-          if(result == 0) { /* no bytes, means end-of-file */
-            keepon = FALSE;
+          if(result == 0)                        /* no bytes */
             break;
-          }
 
           readfile_read = result; /* fall thru with number of bytes read */
         }