diff --git a/lib/sendf.c b/lib/sendf.c index 7c4c72831..9c1ed759a 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -326,7 +326,7 @@ int Curl_read(struct connectdata *conn, /* if there's data pending, then we re-invoke SSL_read() */ break; } - } while(1); + } while(loop); if(loop && SSL_pending(conn->ssl.handle)) return -1; /* basicly EWOULDBLOCK */ }