summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/vtls/rustls.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c
index 381737e59..76519b2ae 100644
--- a/lib/vtls/rustls.c
+++ b/lib/vtls/rustls.c
@@ -138,11 +138,6 @@ cr_recv(struct Curl_easy *data, int sockindex,
*err = CURLE_READ_ERROR;
return -1;
}
- else if(tls_bytes_read == 0) {
- failf(data, "connection closed without TLS close_notify alert");
- *err = CURLE_READ_ERROR;
- return -1;
- }
infof(data, "cr_recv read %ld bytes from the network", tls_bytes_read);