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 7779551 commit 6065eedCopy full SHA for 6065eed
ssl/ssl_lib.cc
@@ -1374,14 +1374,8 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
1374
return SSL_ERROR_SSL;
1375
}
1376
1377
- if (ret_code == 0) {
1378
- if (ssl->s3->rwstate == SSL_ERROR_ZERO_RETURN) {
1379
- return SSL_ERROR_ZERO_RETURN;
1380
- }
1381
- // An EOF was observed which violates the protocol, and the underlying
1382
- // transport does not participate in the error queue. Bubble up to the
1383
- // caller.
1384
- return SSL_ERROR_SYSCALL;
+ if (ret_code == 0 && ssl->s3->rwstate == SSL_ERROR_ZERO_RETURN) {
+ return SSL_ERROR_ZERO_RETURN;
1385
1386
1387
switch (ssl->s3->rwstate) {
0 commit comments