From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 5 Feb 2002 15:33:00 +0000 (+0000)
Subject: Kevin Roth's discovered SSL download problem
X-Git-Tag: curl-7_9_5-pre2~45
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddbcccd43d3e2416bd710e7923b41c945bbcbe72;p=curl

Kevin Roth's discovered SSL download problem
---

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;