sectransp: fix EOF handling

Regression since the large refactor from 2022

Closes #11427
This commit is contained in:
Ondřej Koláček 2023-07-12 05:59:18 +02:00 committed by Daniel Stenberg
parent b87e0921e0
commit 9630fb9f2a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;
}