diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2009-10-14 17:49:15 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2009-10-14 17:49:15 +0000 |
commit | 9b794792b8c02c29c2e4b4e495aa27022bfb3e22 (patch) | |
tree | be069069e4465e12164e0f623ec7e13619eb8387 | |
parent | 9c0cac1b66fb27abbd9025d63edac62d1a595c27 (diff) | |
download | lighttpd-9b794792b8c02c29c2e4b4e495aa27022bfb3e22.tar.gz |
Fix compile error if TLS SNI isn't supported
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2653 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/network.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/network.c b/src/network.c index f6e99cee..e2a06b68 100644 --- a/src/network.c +++ b/src/network.c @@ -619,10 +619,13 @@ int network_init(server *srv) { if (buffer_is_empty(s->ssl_pemfile)) continue; #ifdef OPENSSL_NO_TLSEXT - if (COMP_HTTP_HOST == dc->comp) { - log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:", - "can't use ssl.pemfile with $HTTP[\"host\"], openssl version does not support TLS extensions"); - return -1; + { + data_config *dc = (data_config *)srv->config_context->data[i]; + if (COMP_HTTP_HOST == dc->comp) { + log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:", + "can't use ssl.pemfile with $HTTP[\"host\"], openssl version does not support TLS extensions"); + return -1; + } } #endif |