[ssl] fix segfault in counting renegotiations for openssl versions without TLSEXT/SNI

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2822 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2011-12-23 10:31:57 +00:00
parent 10e5fda664
commit d194c09da9
2 changed files with 1 additions and 3 deletions

2
NEWS
View File

@ -4,7 +4,7 @@ NEWS
====
- 1.4.31 -
*
* [ssl] fix segfault in counting renegotiations for openssl versions without TLSEXT/SNI
- 1.4.30 - 2011-12-18
* Always use our 'own' md5 implementation, fixes linking issues on MacOS (fixes #2331)

View File

@ -1360,9 +1360,7 @@ connection *connection_accept(server *srv, server_socket *srv_socket) {
}
con->renegotiations = 0;
#ifndef OPENSSL_NO_TLSEXT
SSL_set_app_data(con->ssl, con);
#endif
SSL_set_accept_state(con->ssl);
con->conf.is_ssl=1;