diff --git a/lib/vtls/sectransp.c b/lib/vtls/sectransp.c index ff5770fb8d..32bb3a5a79 100644 --- a/lib/vtls/sectransp.c +++ b/lib/vtls/sectransp.c @@ -860,6 +860,9 @@ static OSStatus bio_cf_in_read(SSLConnectionRef connection, } nread = 0; } + else if(nread == 0) { + rtn = errSSLClosedGraceful; + } else if((size_t)nread < *dataLength) { rtn = errSSLWouldBlock; }