diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c index 381737e599..76519b2aef 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);