make sure we mark the connection as SSL (important for redirects later)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@367 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.3.14
Jan Kneschke 2005-06-05 08:34:42 +00:00
parent acfe706d73
commit e5a1b1eb4a
1 changed files with 3 additions and 2 deletions

View File

@ -1139,10 +1139,11 @@ connection *connection_accept(server *srv, server_socket *srv_socket) {
ERR_error_string(ERR_get_error(), NULL));
return NULL;
} else {
SSL_set_accept_state(con->ssl);
}
SSL_set_accept_state(con->ssl);
con->conf.is_ssl=1;
if (1 != (SSL_set_fd(con->ssl, cnt))) {
log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:",
ERR_error_string(ERR_get_error(), NULL));