diff options
author | Stefan Bühler <stbuehler@web.de> | 2009-11-05 17:32:08 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2009-11-05 17:32:08 +0000 |
commit | 2b79b9c3cbac44a966edc921c90e45ea6d4a9e7e (patch) | |
tree | 9ec8479a7ed0f53c2a894336144c84a5da7ac1d1 | |
parent | 47bd40368d93391fed9a006ff7a5818a0310f985 (diff) | |
download | lighttpd-git-2b79b9c3cbac44a966edc921c90e45ea6d4a9e7e.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/branches/lighttpd-1.4.x@2687 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/connections.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -9,6 +9,7 @@ NEWS * mod_rewrite: fix compile error if compiled without pcre * disable warning "CLOSE-read" (fixes #2091) * mod_rrdtool: fix creating file if it doesn't exist (#1788) + * reset tlsext_server_name in connection_reset - fixes random hostnames in the $HTTP["host"] conditional - 1.4.24 - 2009-10-25 * Add T_CONFIG_INT for bigger integers from the config (needed for #1966) diff --git a/src/connections.c b/src/connections.c index 7cd9d5eb..84adb868 100644 --- a/src/connections.c +++ b/src/connections.c @@ -807,6 +807,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(tlsext_server_name); +#endif #undef CLEAN #define CLEAN(x) \ |