From: Marc Hoersken Date: Tue, 24 Feb 2015 23:16:10 +0000 (+0100) Subject: Revert "telnet.c: fix handling of 0 being returned from custom read function" X-Git-Tag: curl-7_41_0~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ffc2aeec6e;p=thirdparty%2Fcurl.git Revert "telnet.c: fix handling of 0 being returned from custom read function" This reverts commit 03fa576833643c67579ae216c4e7350fa9b5f2fe. --- diff --git a/lib/telnet.c b/lib/telnet.c index 6904c4ce36..fd5822e77a 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -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 */ }