]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sectransp: fix EOF handling
authorOndřej Koláček <natris1@gmail.com>
Wed, 12 Jul 2023 03:59:18 +0000 (05:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Jul 2023 12:35:21 +0000 (14:35 +0200)
Regression since the large refactor from 2022

Closes #11427

lib/vtls/sectransp.c

index ff5770fb8d59f27207ea830b95eb782b4d22e806..32bb3a5a79ec41c01cee75def85791ebc2903573 100644 (file)
@@ -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;
   }