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 9a05041 commit 06f9cc4Copy full SHA for 06f9cc4
ssl/ssl_lib.cc
@@ -1369,14 +1369,8 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
1369
return SSL_ERROR_SSL;
1370
}
1371
1372
- if (ret_code == 0) {
1373
- if (ssl->s3->rwstate == SSL_ERROR_ZERO_RETURN) {
1374
- return SSL_ERROR_ZERO_RETURN;
1375
- }
1376
- // An EOF was observed which violates the protocol, and the underlying
1377
- // transport does not participate in the error queue. Bubble up to the
1378
- // caller.
1379
- return SSL_ERROR_SYSCALL;
+ if (ret_code == 0 && ssl->s3->rwstate == SSL_ERROR_ZERO_RETURN) {
+ return SSL_ERROR_ZERO_RETURN;
1380
1381
1382
switch (ssl->s3->rwstate) {
0 commit comments