From: Ondřej Koláček Date: Wed, 12 Jul 2023 03:59:18 +0000 (+0200) Subject: sectransp: fix EOF handling X-Git-Tag: curl-8_2_0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9630fb9f2a4056805e787f0a71e2d86991f9cd20;p=thirdparty%2Fcurl.git sectransp: fix EOF handling Regression since the large refactor from 2022 Closes #11427 --- 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; }