aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sendf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 9c1ed759a..1079067d7 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;