diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 15:29:25 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 15:29:25 +0200 |
commit | 2056ca9fea49558d5967a045955ade01cbcccad9 (patch) | |
tree | c762e1bdf4c8bc1d75701c059052eebcf99b4dda /lib/gtls.c | |
parent | cca192e58f9ed7c4b33c1c991f69ff830c58b38f (diff) | |
download | curl-2056ca9fea49558d5967a045955ade01cbcccad9.tar.gz |
SSL_RECV: EOF is not an error here
The recent overhaul of the SSL recv function made this treat a
zero returned from gnutls_record_recv() as an error, and this
caused our HTTPS test cases to fail. We leave it to upper layer
code to detect if an EOF is a problem or not.
Diffstat (limited to 'lib/gtls.c')
-rw-r--r-- | lib/gtls.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/gtls.c b/lib/gtls.c index b7fa3c926..92d780530 100644 --- a/lib/gtls.c +++ b/lib/gtls.c @@ -778,12 +778,6 @@ ssize_t Curl_gtls_recv(struct connectdata *conn, /* connection data */ return -1; } - if(!ret) { - failf(conn->data, "Peer closed the TLS connection"); - *curlcode = CURLE_RECV_ERROR; - return -1; - } - if(ret < 0) { failf(conn->data, "GnuTLS recv error (%d): %s", (int)ret, gnutls_strerror((int)ret)); |