]> granicus.if.org Git - curl/commit
telnet.c: fix handling of 0 being returned from custom read function
authorMarc Hoersken <info@marc-hoersken.de>
Tue, 24 Feb 2015 22:59:06 +0000 (23:59 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 24 Feb 2015 22:59:06 +0000 (23:59 +0100)
commit03fa576833643c67579ae216c4e7350fa9b5f2fe
tree0c0f91bab682e58a3fd1226ff648ff21efaa0398
parent0c050662b7796af0fdbce7692490bde8200ecafe
telnet.c: fix handling of 0 being returned from custom read function

According to [1]: "Returning 0 will signal end-of-file to the library
and cause it to stop the current transfer."
This change makes the Windows telnet code handle this case accordingly.

 [1] http://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html
lib/telnet.c