diff options
-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 |