diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2009-11-05 21:53:43 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2009-11-05 21:53:43 +0000 |
commit | 45b8f4426d78268b2bff51ad86c2a10398dde4d4 (patch) | |
tree | bb390ab035dff76e37d5b693f5b91e16e3db699c | |
parent | 8dca1b41ae335814e7c6a9ff44a27ba7c11ee50d (diff) | |
download | lighttpd-45b8f4426d78268b2bff51ad86c2a10398dde4d4.tar.gz |
reset tlsext_server_name in connection_reset - fixes random hostnames in the $HTTP["host"] conditional
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2690 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/connections.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -154,6 +154,7 @@ NEWS * Mark recv-queue closed if backend connection got closed in mod_proxy_core (fixes #2090, thx liming) * mod_magnet: add traceback for printing lua errors * export some SSL_CLIENT_* vars for client cert validation (fixes #1288, thx presbrey) + * reset tlsext_server_name in connection_reset - fixes random hostnames in the $HTTP["host"] conditional - 1.5.0-r19.. - * -F option added for spawn-fcgi diff --git a/src/connections.c b/src/connections.c index 214b85ab..3f1db107 100644 --- a/src/connections.c +++ b/src/connections.c @@ -562,6 +562,9 @@ int connection_reset(server *srv, connection *con) { CLEAN(authed_user); CLEAN(server_name); CLEAN(error_handler); +#if defined USE_OPENSSL && ! defined OPENSSL_NO_TLSEXT + CLEAN(sock->tlsext_server_name); +#endif #undef CLEAN #define CLEAN(x) \ |