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 d9cb6eb commit 3f09d38Copy full SHA for 3f09d38
ssl/ssl_lib.cc
@@ -1382,6 +1382,10 @@ 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;
1387
+ }
1388
+
1389
switch (ssl->s3->rwstate) {
1390
case SSL_ERROR_PENDING_SESSION:
1391
case SSL_ERROR_PENDING_CERTIFICATE:
@@ -1394,7 +1398,6 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
1394
1398
case SSL_ERROR_WANT_CERTIFICATE_VERIFY:
1395
1399
case SSL_ERROR_WANT_RENEGOTIATE:
1396
1400
case SSL_ERROR_HANDSHAKE_HINTS_READY:
1397
- case SSL_ERROR_ZERO_RETURN:
1401
return ssl->s3->rwstate;
1402
1403
case SSL_ERROR_WANT_READ: {
0 commit comments