We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4835c9c commit 197a5b9Copy full SHA for 197a5b9
ssl/ssl_lib.cc
@@ -1382,8 +1382,14 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
1382
return SSL_ERROR_SSL;
1383
}
1384
1385
- if (ret_code == 0 && ssl->s3->rwstate == SSL_ERROR_ZERO_RETURN) {
1386
- return SSL_ERROR_ZERO_RETURN;
+ if (ret_code == 0) {
+ if (ssl->s3->rwstate == SSL_ERROR_ZERO_RETURN) {
1387
+ return SSL_ERROR_ZERO_RETURN;
1388
+ }
1389
+ // An EOF was observed which violates the protocol, and the underlying
1390
+ // transport does not participate in the error queue. Bubble up to the
1391
+ // caller.
1392
+ return SSL_ERROR_SYSCALL;
1393
1394
1395
switch (ssl->s3->rwstate) {
0 commit comments