diff --git a/lib/sendf.c b/lib/sendf.c index 9c1ed759ab1fa1684a181cfccad48be2c39e083c..1079067d728f1a629804ef01127d16fc3ba89bf2 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -310,7 +310,7 @@ int Curl_read(struct connectdata *conn, do { nread = SSL_read(conn->ssl.handle, buf, buffersize); - if(nread > 0) + if(nread >= 0) /* successful read */ break;