diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-12-29 16:27:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-12-29 16:27:31 +0000 |
commit | 9b4f92130f74a4efe08c119d7dd41f10a011eb1c (patch) | |
tree | f3adc4863f9a40e85940668f6a35bd3c4ee3ba50 | |
parent | 5a2ab686a6091497bd24a7755a2f0d976e0baf4a (diff) |
return -1 even if SSL_pending() doesn't return non-zero, as we don't really
care how many bytes that is readable NOW. Philippe Raoult reported the
bug in 7.10.3-pre3.
-rw-r--r-- | lib/sendf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index ed36ea95d..add8af9ef 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -347,10 +347,8 @@ int Curl_read(struct connectdata *conn, break; case SSL_ERROR_WANT_READ: case SSL_ERROR_WANT_WRITE: - /* if there's data pending, then we re-invoke SSL_read() */ - if(SSL_pending(conn->ssl.handle)) - return -1; /* basicly EWOULDBLOCK */ - break; + /* there's data pending, re-invoke SSL_read() */ + return -1; /* basicly EWOULDBLOCK */ default: failf(conn->data, "SSL read error: %d", err); return CURLE_RECV_ERROR; |