summaryrefslogtreecommitdiff
path: root/source4/web_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/web_server')
-rw-r--r--source4/web_server/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/web_server/tls.c b/source4/web_server/tls.c
index 4129d59355..2d71ac0c37 100644
--- a/source4/web_server/tls.c
+++ b/source4/web_server/tls.c
@@ -57,7 +57,7 @@ void tls_initialise(struct task_server *task)
const char *cafile = lp_web_cafile();
const char *crlfile = lp_web_crlfile();
- if (!lp_parm_bool(-1, "web", "tls", False)) {
+ if (!lp_web_tls() || keyfile == NULL || *keyfile == 0) {
return;
}