Commit ffc2aeec authored by Marc Hoersken's avatar Marc Hoersken
Browse files

Revert "telnet.c: fix handling of 0 being returned from custom read function"

This reverts commit 03fa5768.
parent b3bcdaf0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 */
        }