Backup errno for later usage (reported by Guido Reina via mailinglist)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2508 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2009-06-03 16:44:37 +00:00
parent fbf79a8e72
commit b202898c40
2 changed files with 5 additions and 3 deletions

1
NEWS
View File

@ -43,6 +43,7 @@ NEWS
* Fix evasive.silent option (#1438)
* Fix mod-fastcgi counters
* Modify fastcgi error message
* Backup errno for later usage (reported by Guido Reina via mailinglist)
- 1.4.22 - 2009-03-07
* Fix wrong lua type for CACHE_MISS/CACHE_HIT in mod_cml (fixes #533)

View File

@ -229,6 +229,7 @@ static int connection_handle_read_ssl(server *srv, connection *con) {
if (len < 0) {
int oerrno = errno;
switch ((r = SSL_get_error(con->ssl, len))) {
case SSL_ERROR_WANT_READ:
case SSL_ERROR_WANT_WRITE:
@ -258,11 +259,11 @@ static int connection_handle_read_ssl(server *srv, connection *con) {
r, ERR_error_string(ssl_err, NULL));
}
switch(errno) {
switch(oerrno) {
default:
log_error_write(srv, __FILE__, __LINE__, "sddds", "SSL:",
len, r, errno,
strerror(errno));
len, r, oerrno,
strerror(oerrno));
break;
}