Skip to content

Commit

Permalink
report EOF for openssl 1.1.1 too
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mauchle committed Jan 20, 2023
1 parent e6c7663 commit c62d06d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ int sslreadtimeout(SSL *ssl, unsigned char *buf, int num, int timeout, pthread_m
SSL_shutdown(ssl);
break;
case SSL_ERROR_SYSCALL:
debugerrno(errno, DBG_INFO, "sslreadtimeout: connection lost");
if (errno)
debugerrno(errno, DBG_INFO, "sslreadtimeout: connection lost");
else
debug(DBG_INFO, "sslreadtimeout: connection lost: EOF");
/* fallthrough */
case SSL_ERROR_SSL:
while ((error = ERR_get_error()))
Expand Down

0 comments on commit c62d06d

Please sign in to comment.