Skip to content

Commit 0ddfd60

Browse files
Move SSL_ERROR_ZERO_RETURN check to match OSSL 1.1.1
1 parent 5561140 commit 0ddfd60

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ssl/ssl_lib.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,10 +1382,6 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
13821382
return SSL_ERROR_SSL;
13831383
}
13841384

1385-
if (ret_code == 0 && ssl->s3->rwstate == SSL_ERROR_ZERO_RETURN) {
1386-
return SSL_ERROR_ZERO_RETURN;
1387-
}
1388-
13891385
switch (ssl->s3->rwstate) {
13901386
case SSL_ERROR_PENDING_SESSION:
13911387
case SSL_ERROR_PENDING_CERTIFICATE:
@@ -1398,6 +1394,7 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
13981394
case SSL_ERROR_WANT_CERTIFICATE_VERIFY:
13991395
case SSL_ERROR_WANT_RENEGOTIATE:
14001396
case SSL_ERROR_HANDSHAKE_HINTS_READY:
1397+
case SSL_ERROR_ZERO_RETURN:
14011398
return ssl->s3->rwstate;
14021399

14031400
case SSL_ERROR_WANT_READ: {

0 commit comments

Comments
 (0)